From: vsv Date: Wed, 19 Mar 2008 08:09:09 +0000 (+0000) Subject: Show toolbars (bug 19151) fix X-Git-Tag: V5_0_0a1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e313480c02f1b0f8bf78f289350e0016943217a;p=modules%2Fgui.git Show toolbars (bug 19151) fix --- diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index 990a96ee9..8e5360537 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -285,11 +285,19 @@ SVTK_Viewer QVector aViews = myViewManager->getViews(); for(int i = 0, iEnd = aViews.size(); i < iEnd; i++){ if(TViewWindow* aView = dynamic_cast(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(aObj); + if (aToolBar) aToolBar->show(); + } + } } } } + /*! Display presentation \param prs - presentation