From 3d7abf5d18e3f4ac8e65a53e94c8c42a679e4842 Mon Sep 17 00:00:00 2001 From: ema Date: Fri, 25 Nov 2011 13:55:39 +0000 Subject: [PATCH] Added "Close button" for dialog --- src/Qtx/QtxDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2