QVector<SUIT_ViewWindow*> aViews = myViewManager->getViews();
for(int i = 0, iEnd = aViews.size(); i < iEnd; i++){
if(TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at(i))){
- aView->getMainWindow()->getToolBar()->show();
+ //aView->getMainWindow()->getToolBar()->show();
+ const QObjectList& aChildren = aView->getMainWindow()->children();
+ foreach (QObject* aObj, aChildren) {
+ if (aObj->inherits("QToolBar")) {
+ QToolBar* aToolBar = dynamic_cast<QToolBar*>(aObj);
+ if (aToolBar) aToolBar->show();
+ }
+ }
}
}
}
+
/*!
Display presentation
\param prs - presentation