From: asl Date: Tue, 19 Mar 2013 05:41:09 +0000 (+0000) Subject: patch for CHARM: now the dock windows can be removed from menu View->Window using... X-Git-Tag: V5_2_5~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3fe71b077f0d5587d26f6a6b66cb6a7fa7315f64;p=modules%2Fgui.git patch for CHARM: now the dock windows can be removed from menu View->Window using the property "appropriate" --- diff --git a/src/Qtx/QtxDockAction.cxx b/src/Qtx/QtxDockAction.cxx index 8f40092d3..606a39587 100755 --- a/src/Qtx/QtxDockAction.cxx +++ b/src/Qtx/QtxDockAction.cxx @@ -159,7 +159,11 @@ void QtxDockAction::dockWidgets( QList& lst ) const for ( QList::iterator it = dockwidgets.begin(); it != dockwidgets.end(); ++it ) { QDockWidget* dw = *it; - if ( dw->parentWidget() == mw ) + bool isOK = dw->parentWidget() == mw; + QVariant isAppropriate = dw->property( "appropriate" ); + if( isAppropriate.isValid() && isAppropriate.type()==QVariant::Bool ) + isOK = isAppropriate.toBool(); + if( isOK ) lst.append( dw ); } }