forked from qt-creator/qt-creator
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:
@@ -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> ¶meters)
|
||||
{
|
||||
QFontDatabase a;
|
||||
|
||||
Reference in New Issue
Block a user