diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-11-10 20:06:28 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2023-11-13 15:32:28 +0000 |
commit | 78c38ab9bf42bfd567ff5f98f4d346fd9e7e69cf (patch) | |
tree | 05b3ce808606d8d3713e86fde921758c84881b7e /src/app/main.cpp | |
parent | ab549936f8410e707f554981d22c9694bea06019 (diff) |
Core: Inform about active UI scaling related environment variables
There are a couple of environment variables which can influence the UI
scaling behavior. If any of those is set, now show an info label next to
the policy combo box in the Environment/Interface settings.
Change-Id: I91619d73bf53761f9cd4d7ae8bbf9b49b2010012
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r-- | src/app/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index bedbb5d39c..b555596f87 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -283,7 +283,7 @@ static void setHighDpiEnvironmentVariable() { if (Utils::StyleHelper::defaultHighDpiScaleFactorRoundingPolicy() == Qt::HighDpiScaleFactorRoundingPolicy::Unset - || qEnvironmentVariableIsSet("QT_SCALE_FACTOR_ROUNDING_POLICY")) + || qEnvironmentVariableIsSet(Utils::StyleHelper::C_QT_SCALE_FACTOR_ROUNDING_POLICY)) return; std::unique_ptr<Utils::QtcSettings> settings(createUserSettings()); |