Don't access static functions via Utils::HostOsInfo instance

Change-Id: Ic45b8f324cb7c6a4691545fc8d668eed69dfeced
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Alessandro Portale
2020-11-18 18:42:27 +01:00
parent 30aec82285
commit 871c8e3ffd
5 changed files with 12 additions and 12 deletions

View File

@@ -327,12 +327,12 @@ static inline QSettings *userSettings()
static void setHighDpiEnvironmentVariable()
{
if (Utils::HostOsInfo().isMacHost())
if (Utils::HostOsInfo::isMacHost())
return;
std::unique_ptr<QSettings> settings(createUserSettings());
const bool defaultValue = Utils::HostOsInfo().isWindowsHost();
const bool defaultValue = Utils::HostOsInfo::isWindowsHost();
const bool enableHighDpiScaling = settings->value("Core/EnableHighDpiScaling", defaultValue).toBool();
static const char ENV_VAR_QT_DEVICE_PIXEL_RATIO[] = "QT_DEVICE_PIXEL_RATIO";
@@ -540,7 +540,7 @@ int main(int argc, char **argv)
QLatin1String(Core::Constants::IDE_CASED_ID));
loadFonts();
if (Utils::HostOsInfo().isWindowsHost()
if (Utils::HostOsInfo::isWindowsHost()
&& !qFuzzyCompare(qApp->devicePixelRatio(), 1.0)
&& QApplication::style()->objectName().startsWith(
QLatin1String("windows"), Qt::CaseInsensitive)) {