Salome HOME
Merge Qt5 porting.
[modules/gui.git] / src / SVTK / SVTK_ViewModel.cxx
index eb3a754e939d50f3b9fd0fcb427af1c6265eca1c..7f1be47983f1aa3d8e298134170bf75786698184 100644 (file)
@@ -565,7 +565,7 @@ void SVTK_Viewer::contextMenuPopup( QMenu* thePopup )
 
   if(TViewWindow* aView = dynamic_cast<TViewWindow*>(myViewManager->getActiveView())){
     //Support of several toolbars in the popup menu
-    QList<QToolBar*> lst = qFindChildren<QToolBar*>( aView );
+    QList<QToolBar*> lst = aView->findChildren<QToolBar*>();
     QList<QToolBar*>::const_iterator it = lst.begin(), last = lst.end();
     for( ; it!=last; it++ )
       thePopup->addAction( (*it)->toggleViewAction() );