Utils: Move defaultHighDpiScaleFactorRoundingPolicy() to StyleHelper

... from HostOSInfo. A better suited place.

Amends: 3726f0d6c1

Change-Id: I5ba052603ae438b9347f1091088f0d105d19f587
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Alessandro Portale
2023-10-04 17:41:42 +02:00
parent 257af1ebd8
commit 64870f9163
5 changed files with 13 additions and 9 deletions

View File

@@ -712,6 +712,12 @@ bool StyleHelper::isQDSTheme()
return creatorTheme() ? creatorTheme()->flag(Theme::QDSTheme) : false;
}
Qt::HighDpiScaleFactorRoundingPolicy StyleHelper::defaultHighDpiScaleFactorRoundingPolicy()
{
return HostOsInfo::isMacHost() ? Qt::HighDpiScaleFactorRoundingPolicy::Unset
: Qt::HighDpiScaleFactorRoundingPolicy::PassThrough;
}
QIcon StyleHelper::getIconFromIconFont(const QString &fontName, const QList<IconFontHelper> &parameters)
{
QFontDatabase a;