mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Qt6: the help button is now opt in instead of opt out
This seems much more reasonable. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8b463ca158
commit
6700d617b8
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <QApplication>
|
||||
#include <Qt>
|
||||
|
@ -50,7 +51,7 @@ void init_qt_late()
|
|||
}
|
||||
// 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)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
|
||||
#endif
|
||||
qPref::load();
|
||||
|
|
Loading…
Add table
Reference in a new issue