summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreapplication.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-09-12 12:16:43 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-03-13 16:23:56 +0200
commit951d49075066cf8f66906c803c32cc2c52fd8e18 (patch)
tree3fc8ee3536e7e733db0ac1aaa813783b317a9539 /src/corelib/kernel/qcoreapplication.cpp
parent17be43c58ec6fbffee52d2a64038c4744610875a (diff)
High-DPI: Enable AA_UseHighDpiPixmaps by default
The effect of this is that QIcon::pixmap() will/may return a pixmap larger than the requested size (with an appropriate devicePixelRatio set), suitable for high-dpi displays. Many use cases, such as painting the image with QPainter, will be unaffected by this change. User code which e.g. iterate over image pixels may have to be updated. Change-Id: I63e867cc1e3f2a0b5cad92e1ffab4fe4de33ae19 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 09d2e194ba..fe3aa454ab 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -361,7 +361,8 @@ QAbstractEventDispatcher *QCoreApplicationPrivate::eventDispatcher = nullptr;
QCoreApplication *QCoreApplication::self = nullptr;
uint QCoreApplicationPrivate::attribs =
(1 << Qt::AA_SynthesizeMouseForUnhandledTouchEvents) |
- (1 << Qt::AA_SynthesizeMouseForUnhandledTabletEvents);
+ (1 << Qt::AA_SynthesizeMouseForUnhandledTabletEvents) |
+ (1 << Qt::AA_UseHighDpiPixmaps);
struct QCoreApplicationData {
QCoreApplicationData() noexcept {