Browse Source

Merge pull request #8458 from luis-pereira/qgetenv

Use qEnvironmentVariableIsEmpty
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
6244ad5fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/main.cpp

2
src/app/main.cpp

@ -338,7 +338,7 @@ void showSplashScreen() @@ -338,7 +338,7 @@ void showSplashScreen()
#if defined(Q_OS_UNIX)
void setupDpi()
{
if (qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty())
if (qEnvironmentVariableIsEmpty("QT_AUTO_SCREEN_SCALE_FACTOR"))
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
}
#endif // Q_OS_UNIX

Loading…
Cancel
Save