aboutsummaryrefslogtreecommitdiffstats
path: root/core/qt-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r--core/qt-init.cpp6
1 files changed, 6 insertions, 0 deletions
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 <QApplication>
+#include <Qt>
#include <QNetworkProxy>
#include <QLibraryInfo>
#include <QTextCodec>
@@ -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();