mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-13 16:39:48 +02:00
flag WindowCloseButtonHint is only available in Qt 4.5 and later
This commit is contained in:
@@ -576,12 +576,21 @@ void FWWindow::showIntroDialog()
|
|||||||
pm.load(":/Images/fwbuilder3-128x128.png");
|
pm.load(":/Images/fwbuilder3-128x128.png");
|
||||||
|
|
||||||
msg_box.setWindowModality(Qt::ApplicationModal);
|
msg_box.setWindowModality(Qt::ApplicationModal);
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x040500
|
||||||
msg_box.setWindowFlags(
|
msg_box.setWindowFlags(
|
||||||
Qt::Window |
|
Qt::Window |
|
||||||
Qt::WindowTitleHint |
|
Qt::WindowTitleHint |
|
||||||
Qt::CustomizeWindowHint |
|
Qt::CustomizeWindowHint |
|
||||||
Qt::WindowCloseButtonHint |
|
Qt::WindowCloseButtonHint |
|
||||||
Qt::WindowSystemMenuHint);
|
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.setWindowTitle(tr("Welcome to Firewall Builder"));
|
||||||
msg_box.setIconPixmap(pm);
|
msg_box.setIconPixmap(pm);
|
||||||
|
|||||||
Reference in New Issue
Block a user