summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-28 11:38:07 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-28 20:08:43 +0200
commitdce106c77cc2ecf58ceb38a041698dc35a80183c (patch)
tree30b698675f905b9d3a7bd265b297096feac80648 /src/corelib/global
parent891fc4b42be2a56b61d1784898e8d0a9107e5055 (diff)
High-DPI: Remove usage of Qt::AA_EnableHighDpiScaling
This attribute is now on by default. Change-Id: I7c9d2e3445d204d3450758673048d514bc9c850c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qnamespace.h4
-rw-r--r--src/corelib/global/qnamespace.qdoc11
2 files changed, 4 insertions, 11 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 9dda3572b4..01138e58ed 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -487,7 +487,9 @@ namespace Qt {
AA_UseSoftwareOpenGL = 17,
AA_ShareOpenGLContexts = 18,
AA_SetPalette = 19,
- AA_EnableHighDpiScaling = 20,
+#if QT_DEPRECATED_SINCE(6, 0)
+ AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED = 20,
+#endif
AA_DisableHighDpiScaling = 21,
AA_UseStyleSheetPropagationInWidgetStyles = 22,
AA_DontUseNativeDialogs = 23,
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index a3d1564b06..6532f3bbab 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -215,15 +215,6 @@
\value AA_SetPalette Indicates whether a palette was explicitly set on the
QGuiApplication. This value was added in Qt 5.5.
- \value AA_EnableHighDpiScaling Enables high-DPI scaling in Qt on supported
- platforms (see also \l{High DPI Displays}). Supported platforms are
- X11, Windows and Android. Enabling makes Qt scale the main (device
- independent) coordinate system according to display scale factors
- provided by the operating system. This corresponds to setting the
- QT_AUTO_SCREEN\unicode{0x200b}_SCALE_FACTOR environment variable to
- 1. This attribute must be set before QGuiApplication is constructed.
- This value was added in Qt 5.6.
-
\value AA_DisableHighDpiScaling Disables high-DPI scaling in Qt, exposing window
system coordinates. Note that the window system may do its own scaling,
so this does not guarantee that QPaintDevice::devicePixelRatio() will
@@ -305,6 +296,7 @@
This value was added in 5.15
\omitvalue AA_AttributeCount
+ \omitvalue AA_EnableHighDpiScaling
*/
/*!
@@ -3270,7 +3262,6 @@
environment variable.
\sa QGuiApplication::setHighDpiScaleFactorRoundingPolicy()
- \sa AA_EnableHighDpiScaling.
\omitvalue Unset
\value Round Round up for .5 and above.