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

Ludovic Fauvet git at videolan.org
Mon Jul 15 16:56:47 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:18:26 2013 +0200| [8fc155e534f90598685746a6c19883cea62aa3f0] | committer: Ludovic Fauvet

Qt: qFindChild has been deprecated in Qt5

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

 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