Salome HOME
Merge Qt5 porting.
[modules/gui.git] / src / OCCViewer / OCCViewer_Utilities.cxx
index 18e9096bc70809adffcabdb08f136ca2d6f5e2c7..baa9cbaa6006913b8a8d89908d016154ec91e68a 100755 (executable)
@@ -141,7 +141,7 @@ bool OCCViewer_Utilities::isDialogOpened( OCCViewer_ViewWindow* theView, const Q
 {
   bool isFound = false;
   OCCViewer_ViewFrame* aViewFrame = dynamic_cast<OCCViewer_ViewFrame*>( theView->parent()->parent() );
-  QList<QDialog*> allDialogs = qFindChildren<QDialog*>( aViewFrame );
+  QList<QDialog*> allDialogs = aViewFrame->findChildren<QDialog*>();
   foreach ( QDialog* d, allDialogs )
     if ( d->objectName() == theName )
       isFound = true;