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