mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-13 08:29:32 +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");
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user