summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-11-27 11:56:10 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-11-27 12:26:51 +0000
commit58afadc624cf284cfe93d6a5c85557ed6e4f9765 (patch)
tree345aff73792f0b5e8669423d15b678e3ca7fce41 /src/gui/kernel/qguiapplication.cpp
parent05bb9b1016d981ac3c31c74dc8bc060402b86fa2 (diff)
Update setHighDpiScaleFactorRoundingPolicy docs
The default is now passthrough. And let's not mention the environment variable overrides, as they are meant for internal testing. Pick-to: 6.0 Pick-to: 6.0.0 Change-Id: Ie2409e5411d4bdcdf041834cb5ca9e1215aa173a Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r--src/gui/kernel/qguiapplication.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 05933bac6a..c10b95e206 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -3633,14 +3633,11 @@ Qt::ApplicationState QGuiApplication::applicationState()
("small UI") or as 2x ("large UI"). See the Qt::HighDpiScaleFactorRoundingPolicy
enum for a complete list of all options.
- This function must be called before creating the application object,
- and can be overridden by setting the QT_SCALE_FACTOR_ROUNDING_POLICY
- environment variable. The QGuiApplication::highDpiScaleFactorRoundingPolicy()
+ This function must be called before creating the application object.
+ The QGuiApplication::highDpiScaleFactorRoundingPolicy()
accessor will reflect the environment, if set.
- The default value is Qt::HighDpiScaleFactorRoundingPolicy::Round.
- On Qt for Android the default is Qt::HighDpiScaleFactorRoundingPolicy::PassThrough,
- which preserves historical behavior from earlier Qt versions.
+ The default value is Qt::HighDpiScaleFactorRoundingPolicy::PassThrough.
*/
void QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy policy)
{