iOS: Use 72 DPI for font size conversion
This matches how UIKit behaves Change-Id: I13fd2578cac84e57b6be29c42ddee414b7ee9cb9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>bb10
parent
16e8eca362
commit
7150e8f51f
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue