flag WindowCloseButtonHint is only available in Qt 4.5 and later

This commit is contained in:
Vadim Kurland
2010-10-07 03:25:54 +00:00
parent 24c222a0a4
commit 76c73561ba
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
#define BUILD_NUM 3334
#define BUILD_NUM 3336
+9
View File
@@ -576,12 +576,21 @@ void FWWindow::showIntroDialog()
pm.load(":/Images/fwbuilder3-128x128.png");
msg_box.setWindowModality(Qt::ApplicationModal);
#if QT_VERSION >= 0x040500
msg_box.setWindowFlags(
Qt::Window |
Qt::WindowTitleHint |
Qt::CustomizeWindowHint |
Qt::WindowCloseButtonHint |
Qt::WindowSystemMenuHint);
#else
msg_box.setWindowFlags(
Qt::Window |
Qt::WindowTitleHint |
Qt::CustomizeWindowHint |
Qt::WindowSystemMenuHint);
#endif
msg_box.setWindowTitle(tr("Welcome to Firewall Builder"));
msg_box.setIconPixmap(pm);