Set environment variable QT_AUTO_SCREEN_SCALE_FACTOR in Qt 5.6.

Amends de3b2b6493 to set the
variable.

Change-Id: I305e0d911e42f76ee6f93406c012000a63bf7bc5
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
This commit is contained in:
Friedemann Kleint
2015-08-25 17:00:22 +02:00
parent 52ebfb0fa2
commit 85e1b4d089

View File

@@ -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"));