Don't use removed QApplication attribute

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-03-19 11:26:52 +03:00
parent 561fbf2cca
commit 135cad576c
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -235,7 +235,7 @@ int main(int argc, char *argv[])
// 3. https://bugreports.qt.io/browse/QTBUG-46015
qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));
#if !defined(DISABLE_GUI)
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && !defined(DISABLE_GUI)
// this is the default in Qt6
app->setAttribute(Qt::AA_DisableWindowContextHelpButton);
#endif