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: 3726f0d6c1

Change-Id: I74f2310f1b5379c8dea0bf86aee965374ca2732e
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2023-10-05 17:26:05 +02:00
parent 9df0571ff9
commit 1824db503e

View File

@@ -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<IconFontHelper> &parameters)