summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiosglobal.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-02-14 14:08:09 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:56:09 +0100
commitc75bc5b532479e8dbe6b7f07dcc5f9fcc915f5c7 (patch)
treea3834821293196636b50fd6f8ceffd06abbe1d53 /src/plugins/platforms/ios/qiosglobal.h
parent11d50be6dd8bbfe695408ccd011cbf63f1b4324a (diff)
iOS: Don't crash on landscape mode startup
fromPortraitToPrimary is called from the QIOSScreen constructor. This is probably to early to call QGuiApplication functions. Change-Id: I882304fd641df13dc530491990245ba9ad495377 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiosglobal.h')
-rw-r--r--src/plugins/platforms/ios/qiosglobal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosglobal.h b/src/plugins/platforms/ios/qiosglobal.h
index cd265c0603..3be9f8bb21 100644
--- a/src/plugins/platforms/ios/qiosglobal.h
+++ b/src/plugins/platforms/ios/qiosglobal.h
@@ -49,6 +49,8 @@
QT_BEGIN_NAMESPACE
+class QPlatformScreen;
+
bool isQtApplication();
QIOSViewController *rootViewController();
@@ -58,7 +60,7 @@ CGPoint toCGPoint(const QPoint &point);
QPoint fromCGPoint(const CGPoint &point);
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
-QRect fromPortraitToPrimary(const QRect &rect);
+QRect fromPortraitToPrimary(const QRect &rect, QPlatformScreen *screen);
QT_END_NAMESPACE