]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Button "Maximize" added to resizeable dialogs.
authorstv <stv@opencascade.com>
Tue, 26 Sep 2006 09:52:34 +0000 (09:52 +0000)
committerstv <stv@opencascade.com>
Tue, 26 Sep 2006 09:52:34 +0000 (09:52 +0000)
src/Qtx/QtxDialog.cxx

index 2554511a4675b36b29e336fbaf9da052f0fcf5fc..c52cb85fe5c4fce9f1aee386ca3c129c2ae86766 100755 (executable)
@@ -416,12 +416,13 @@ QSize QtxDialog::Border::minimumSizeHint() const
 QtxDialog::QtxDialog( QWidget* parent, const char* name,
                                          bool modal, bool allowResize, const int f, WFlags wf )
 : QDialog( parent, name, modal,
-#ifdef WIN32
            wf | WStyle_Customize | WStyle_Title | WStyle_SysMenu |
-           ( allowResize ? WStyle_NormalBorder : WStyle_NoBorderEx ) ),
+#ifdef WIN32
+           ( allowResize ? WStyle_NormalBorder : WStyle_NoBorderEx ) |
 #else
-           wf | WStyle_NormalBorder | WStyle_Customize | WStyle_Title | WStyle_SysMenu ),
+           WStyle_NormalBorder |
 #endif
+           ( allowResize ? WStyle_Maximize : 0 ) ),
 mySender( 0 ),
 myAlignment( 0 ),
 myInited( false ),