diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-01-30 20:31:06 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-27 23:56:07 +0100 |
commit | 60685407c208466c67830744808b8a902bd2377b (patch) | |
tree | 44ee7b25bc40bbd922e2747e5411629c6f14b261 /src/plugins/platforms/ios/qiosscreen.h | |
parent | 58415530aacc5ef92f0076f7dff04d4f5074c4da (diff) |
iOS: Enable retina resolution for styles
The QStyle code uses the global qApp->devicePixelRatio(),
which queries the screen, not the window.
Implement QIOSScreen::devicePixelRatio().
Change-Id: I0091e5793f8d07ab7a46b6de443edd9457dcff85
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiosscreen.h')
-rw-r--r-- | src/plugins/platforms/ios/qiosscreen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosscreen.h b/src/plugins/platforms/ios/qiosscreen.h index bbc3eb7432..40c7a3ccf7 100644 --- a/src/plugins/platforms/ios/qiosscreen.h +++ b/src/plugins/platforms/ios/qiosscreen.h @@ -64,6 +64,7 @@ public: QImage::Format format() const; QSizeF physicalSize() const; QDpi logicalDpi() const; + qreal devicePixelRatio() const; Qt::ScreenOrientation nativeOrientation() const; Qt::ScreenOrientation orientation() const; |