diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-25 17:00:22 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-26 07:52:15 +0000 |
commit | 85e1b4d0896465b825f561330a66e5bfd3928087 (patch) | |
tree | 3baba3af0c83cf53471dc3993659c7ed71203fce /src/app | |
parent | 52ebfb0fa2ba11841253235490d371c259623e59 (diff) | |
download | qt-creator-85e1b4d0896465b825f561330a66e5bfd3928087.tar.gz |
Set environment variable QT_AUTO_SCREEN_SCALE_FACTOR in Qt 5.6.
Amends de3b2b6493c810380e961bb8b36b805a505b55b7 to set the
variable.
Change-Id: I305e0d911e42f76ee6f93406c012000a63bf7bc5
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index bb10f99790..f8ce9a87f4 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -299,6 +299,8 @@ int main(int argc, char **argv) && !qEnvironmentVariableIsSet("QT_DEVICE_PIXEL_RATIO")) { qputenv("QT_DEVICE_PIXEL_RATIO", "auto"); } +#else + qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif // < Qt 5.6 QLoggingCategory::setFilterRules(QLatin1String("qtc.*.debug=false")); |