From 2e313480c02f1b0f8bf78f289350e0016943217a Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 19 Mar 2008 08:09:09 +0000 Subject: [PATCH] Show toolbars (bug 19151) fix --- src/SVTK/SVTK_ViewModel.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.2