Disable the "?" help button in all dialogs on Windows. Closes #7365.

This commit is contained in:
Chocobo1 2017-12-08 11:05:52 +08:00 committed by sledgehammer999
parent 7396b8adba
commit e1c3d419a7
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

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