From 63e63ee07d0165d24807c79bd316092079c9949f Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Fri, 13 Jul 2018 22:40:02 +0200 Subject: Disable the WindowContextHelpButtonHint for Qt >=5.10 Disables the WindowContextHelpButtonHint by default on Qt::Sheet and Qt::Dialog widgets. This hides the ? button on Windows, which only makes sense if you use QWhatsThis functionality. This value has been added in Qt 5.10. Signed-off-by: Stefan Fuchs --- core/qt-init.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/qt-init.cpp b/core/qt-init.cpp index b1a235cb6..5596b3f95 100644 --- a/core/qt-init.cpp +++ b/core/qt-init.cpp @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include #include #include #include @@ -42,6 +43,11 @@ void init_qt_late() QCoreApplication::setApplicationName("Subsurface"); #endif } + // Disables the WindowContextHelpButtonHint by default on Qt::Sheet and Qt::Dialog widgets. + // This hides the ? button on Windows, which only makes sense if you use QWhatsThis functionality. +#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) + QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); +#endif // find plugins installed in the application directory (without this SVGs don't work on Windows) SettingsObjectWrapper::instance()->load(); -- cgit v1.2.3-70-g09d2