mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Avoid Qt 6.5 bug when using windows11 style
Continuation of e9e8393, the bug is present in 6.5.3 too.
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
#include <gsl/gsl_errno.h>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if QT_VERSION > 0x060700
|
||||
#if QT_VERSION > 0x060500
|
||||
#include <QStyleFactory>
|
||||
#endif
|
||||
#endif
|
||||
@@ -436,7 +436,7 @@ main(int argc, char *argv[])
|
||||
application = new QApplication(argc, argv);
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if QT_VERSION > 0x060700
|
||||
#if QT_VERSION > 0x060500
|
||||
if (application->style()->name() == "windows11") {
|
||||
application->setStyle(QStyleFactory::create("Windows"));
|
||||
qDebug()<<"Replacing windows11 by Windows style to avoid a Qt bug";
|
||||
|
||||
Reference in New Issue
Block a user