[vlc-commits] Qt: qFindChild has been deprecated in Qt5

Ludovic Fauvet git at videolan.org
Fri Jul 19 12:53:24 CEST 2013


vlc/vlc-2.1 | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:18:26 2013 +0200| [a4b36abc6b7776b38cf72826fe188539e9cf1698] | committer: Jean-Baptiste Kempf

Qt: qFindChild has been deprecated in Qt5

(cherry picked from commit 8fc155e534f90598685746a6c19883cea62aa3f0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=a4b36abc6b7776b38cf72826fe188539e9cf1698
---

 modules/gui/qt4/menus.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 95d83cd..19bf1c5 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1512,7 +1512,7 @@ void VLCMenuBar::CreateAndConnect( QMenu *menu, const char *psz_var,
 
     action->setChecked( checked );
 
-    MenuItemData *itemData = qFindChild<MenuItemData*>( action, QString() );
+    MenuItemData *itemData = action->findChild<MenuItemData*>( QString() );
     delete itemData;
     itemData = new MenuItemData( action, p_obj, i_val_type, val, psz_var );
 



More information about the vlc-commits mailing list