emit lastViewClosed(this);
}
+/*!
+ Returns 'true' if any of views (view windows) is visible.
+*/
+bool SUIT_ViewManager::isVisible() const
+{
+ bool res = false;
+ for ( uint i = 0; i < myViews.count() && !res; i++ )
+ res = myViews[i]->isVisibleTo( myViews[i]->parentWidget() );
+ return res;
+}
+
/*!
Show or hide all views (view windows)
*/
//Resize the views, set their captions and apply visual parameters.
QPtrVector<SUIT_ViewWindow> views = vm->getViews();
- for (int i = 0, j = 0; i<viewCount; i++, j++) {
+ for (int i = 0, j = 0; i<viewCount; i++, j+=2) {
viewWin = views[i];
if ( !viewWin )
continue;
// wait untill the window is really shown. This step fixes MANY bugs..
- while ( !viewWin->isVisible() )
+ while ( !vm->isVisible() )
qApp->processEvents();
viewWin->setCaption(ip->getValue(viewerEntry, j).c_str());