From: ema Date: Fri, 25 Nov 2011 13:55:39 +0000 (+0000) Subject: Added "Close button" for dialog X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d7abf5d18e3f4ac8e65a53e94c8c42a679e4842;p=modules%2Fgui.git Added "Close button" for dialog --- diff --git a/src/Qtx/QtxDialog.cxx b/src/Qtx/QtxDialog.cxx index 64e43c854..30666a40f 100755 --- a/src/Qtx/QtxDialog.cxx +++ b/src/Qtx/QtxDialog.cxx @@ -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