From 7150e8f51f44b6299728c5bdfb8cb5b54b8d1141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 14 Jan 2013 15:41:33 +0100 Subject: iOS: Use 72 DPI for font size conversion This matches how UIKit behaves Change-Id: I13fd2578cac84e57b6be29c42ddee414b7ee9cb9 Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/ios/qiosscreen.h | 1 + src/plugins/platforms/ios/qiosscreen.mm | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/plugins/platforms/ios/qiosscreen.h b/src/plugins/platforms/ios/qiosscreen.h index 762c60e6da..bbc3eb7432 100644 --- a/src/plugins/platforms/ios/qiosscreen.h +++ b/src/plugins/platforms/ios/qiosscreen.h @@ -63,6 +63,7 @@ public: int depth() const; QImage::Format format() const; QSizeF physicalSize() const; + QDpi logicalDpi() const; Qt::ScreenOrientation nativeOrientation() const; Qt::ScreenOrientation orientation() const; diff --git a/src/plugins/platforms/ios/qiosscreen.mm b/src/plugins/platforms/ios/qiosscreen.mm index 5905f1630e..f3585407ce 100644 --- a/src/plugins/platforms/ios/qiosscreen.mm +++ b/src/plugins/platforms/ios/qiosscreen.mm @@ -178,6 +178,11 @@ QSizeF QIOSScreen::physicalSize() const return m_physicalSize; } +QDpi QIOSScreen::logicalDpi() const +{ + return QDpi(72, 72); +} + Qt::ScreenOrientation QIOSScreen::nativeOrientation() const { return Qt::PortraitOrientation; -- cgit v1.2.3