]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Added "Close button" for dialog
authorema <ema@opencascade.com>
Fri, 25 Nov 2011 13:55:39 +0000 (13:55 +0000)
committerema <ema@opencascade.com>
Fri, 25 Nov 2011 13:55:39 +0000 (13:55 +0000)
src/Qtx/QtxDialog.cxx

index 64e43c854e3ae461567a3b5919973d16bc453481..30666a40fcb12f6e6d1aa966206ebdaa75ff0a52 100755 (executable)
@@ -437,7 +437,7 @@ QSize QtxDialog::Border::minimumSizeHint() const
   \param wf dialog box flags (Qt::WindowFlags)
 */
 QtxDialog::QtxDialog( QWidget* parent, bool modal, bool allowResize, const int f, Qt::WindowFlags wf )
-: QDialog( parent, (Qt::WindowFlags)( wf | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::Dialog |
+: QDialog( parent, (Qt::WindowFlags)( wf | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint | Qt::Dialog |
 #ifdef WIN32
            ( allowResize ? 0 : Qt::FramelessWindowHint ) |
 #endif