/*!Destructor.*/
SUIT_ViewManager::~SUIT_ViewManager()
{
- if (myViewModel) {
- myViewModel->setViewManager(0);
+ if ( myViewModel )
+ {
+ myViewModel->setViewManager( 0 );
delete myViewModel;
}
}
emit lastViewClosed(this);
}
+/*!
+ Show or hide all views (view windows)
+*/
+void SUIT_ViewManager::setShown( const bool on )
+{
+ for ( uint i = 0; i < myViews.count(); i++ )
+ myViews.at( i )->setShown( on );
+}
+
/*!Emit on \a theEvent mouse pressed in \a theView.*/
void SUIT_ViewManager::onMousePressed(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
{