]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
remove regression on ContextHelp button
authorptv <ptv@opencascade.com>
Thu, 30 Nov 2006 08:48:26 +0000 (08:48 +0000)
committerptv <ptv@opencascade.com>
Thu, 30 Nov 2006 08:48:26 +0000 (08:48 +0000)
src/Qtx/QtxDialog.cxx

index c52cb85fe5c4fce9f1aee386ca3c129c2ae86766..85c362d16a302aa384a35debed7649fe809b638f 100755 (executable)
@@ -422,7 +422,12 @@ QtxDialog::QtxDialog( QWidget* parent, const char* name,
 #else
            WStyle_NormalBorder |
 #endif
-           ( allowResize ? WStyle_Maximize : 0 ) ),
+           ( ( allowResize 
+#ifdef WIN32 
+           // in qwidget_win.cpp flag WStyle_ContextHelp will be unset in WStyle_MinMax in switched ON
+           && !( wf & WStyle_ContextHelp )
+#endif
+             ) ? WStyle_Maximize : 0 ) ),
 mySender( 0 ),
 myAlignment( 0 ),
 myInited( false ),