From 76c73561baa43eb6ba04b4ef5190e85c343564dc Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Thu, 7 Oct 2010 03:25:54 +0000 Subject: [PATCH] flag WindowCloseButtonHint is only available in Qt 4.5 and later --- build_num | 2 +- src/gui/FWWindow.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build_num b/build_num index 8044190b8..d5915d870 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 3334 +#define BUILD_NUM 3336 diff --git a/src/gui/FWWindow.cpp b/src/gui/FWWindow.cpp index 1a841f249..6339c93d4 100644 --- a/src/gui/FWWindow.cpp +++ b/src/gui/FWWindow.cpp @@ -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);