{
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;