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:
Dirk Hohndel 2022-02-09 17:19:43 -08:00
parent 8b463ca158
commit 6700d617b8

View file

@ -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();