diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2014-12-01 09:19:39 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@digia.com> | 2015-03-26 11:01:26 +0100 |
commit | 31a3822eac1687d53b0ee30e94a60ed82e53e87b (patch) | |
tree | eb24fa02b8d705fa390482e60e8d50830112ca9f /src/gui/kernel | |
parent | bf27bca43cc9971f99ee24988593c7d7afd50e71 (diff) |
WIP: Read QT_SCALE_FACTOR env. variable
Drop the "HIGHDPI" term
Change-Id: I55cb4de34f302dee7897d70ce6693fea9d66926f
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qhighdpiscaling.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qhighdpiscaling_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qhighdpiscaling.cpp b/src/gui/kernel/qhighdpiscaling.cpp index 9d563a9c74..c76ac9b590 100644 --- a/src/gui/kernel/qhighdpiscaling.cpp +++ b/src/gui/kernel/qhighdpiscaling.cpp @@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE static inline qreal initialScaleFactor() { - static const char envVar[] = "QT_HIGHDPI_SCALE_FACTOR"; + static const char envVar[] = "QT_SCALE_FACTOR"; qreal result = 1; if (qEnvironmentVariableIsSet(envVar)) { bool ok; diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h index 372897fc1e..bfa50f593a 100644 --- a/src/gui/kernel/qhighdpiscaling_p.h +++ b/src/gui/kernel/qhighdpiscaling_p.h @@ -57,7 +57,7 @@ // // Several scaling factors can be set: // - A process-global scale factor -// - the QT_HIGHDPI_SCALE_FACTOR environment variable. +// - the QT_SCALE_FACTOR environment variable. // - QHighDpiScaling::setFactor(factor); // - A per-window scale factor // - QHighDpiScaling::setWindowFactor(window, factor); |