From 7dfa4acfb797b2ce44a92de97f0b8fac9073ca22 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 19 Jun 2020 12:06:46 +0200 Subject: [PATCH] App: Restrict use of Qt::AA_DisableWindowContextHelpButton to Qt 5 Gone afterwards. Change-Id: I8c7009658844a5979b144c108736055ed11bec05 Reviewed-by: Eike Ziller --- src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 4302e9018c2..419b9b362af 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -558,7 +558,9 @@ int main(int argc, char **argv) #endif app.setAttribute(Qt::AA_UseHighDpiPixmaps); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) app.setAttribute(Qt::AA_DisableWindowContextHelpButton); +#endif PluginManager pluginManager; PluginManager::setPluginIID(QLatin1String("org.qt-project.Qt.QtCreatorPlugin"));