From 54980e7585a7d3442ac6958ca7c0e0bb0a99bb33 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sat, 20 Feb 2021 21:42:44 +0000 Subject: [PATCH] Fix Qt6 build on Windows --- src/private/widgets/TitleBarWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/private/widgets/TitleBarWidget.cpp b/src/private/widgets/TitleBarWidget.cpp index 27267c58..34cb12b3 100644 --- a/src/private/widgets/TitleBarWidget.cpp +++ b/src/private/widgets/TitleBarWidget.cpp @@ -65,7 +65,7 @@ void Button::paintEvent(QPaintEvent *) if (scalingFactorIsSupported(combinedFactor)) // Older Qt has rendering bugs with fractional factors opt.iconSize = opt.iconSize * combinedFactor; -#elif defined(Q_OS_WIN) +#elif defined(Q_OS_WIN) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // Probably Windows could use the same code path as Linux, but I'm seeing too thick icons on Windows... if (!QGuiApplication::testAttribute(Qt::AA_EnableHighDpiScaling) && scalingFactorIsSupported(logicalFactor)) // Older Qt has rendering bugs with fractional factors