From 1824db503e57467c4cc64fc5f21d4b16c9ec6702 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 5 Oct 2023 17:26:05 +0200 Subject: [PATCH] Utils: Restore original default DPI rounding policy Qt Creator 11.0.2 changed the default DPI rounding policy to "PassThrough" for Windows. In QtC 12, there is now a setting that allows the user to chose the policy. The default was changed to "PassThrough" also for Linux. This change sets the default back to the original policy "Round" which Qt Creator used from the beginnings of HighDPI support. Amends: 3726f0d6c1d05452f070b911683c51fe95df65c4 Change-Id: I74f2310f1b5379c8dea0bf86aee965374ca2732e Reviewed-by: Artem Sokolovskii Reviewed-by: Eike Ziller --- src/libs/utils/stylehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp index 506601e8260..b93481ef9d4 100644 --- a/src/libs/utils/stylehelper.cpp +++ b/src/libs/utils/stylehelper.cpp @@ -715,7 +715,7 @@ bool StyleHelper::isQDSTheme() Qt::HighDpiScaleFactorRoundingPolicy StyleHelper::defaultHighDpiScaleFactorRoundingPolicy() { return HostOsInfo::isMacHost() ? Qt::HighDpiScaleFactorRoundingPolicy::Unset - : Qt::HighDpiScaleFactorRoundingPolicy::PassThrough; + : Qt::HighDpiScaleFactorRoundingPolicy::Round; } QIcon StyleHelper::getIconFromIconFont(const QString &fontName, const QList ¶meters)