Fixed compilation with older qt versions

This commit is contained in:
0xFEEDC0DE64
2017-12-22 23:14:03 +01:00
parent 3049c6b09e
commit d15ec86470
11 changed files with 55 additions and 0 deletions
@@ -6,7 +6,12 @@ BookingDialog::BookingDialog(QWidget *parent) :
ui(new Ui::BookingDialog)
{
ui->setupUi(this);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
#else
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
#endif
}
BookingDialog::~BookingDialog()