path: root/src/plugins/platforms/ios/qiosglobal.h
diff options
authorRichard Moe Gustavsen <>2013-04-15 15:15:36 +0200
committerThe Qt Project <>2013-04-19 12:03:36 +0200
commit5ea3845bd0bf4dec9828270ab18e7c94d596975e (patch)
tree2277c94fa2cff0ea0760a56eb31c2629e57a4578 /src/plugins/platforms/ios/qiosglobal.h
parent963b8dabef3b82f6d7cdda0669373ceae1629699 (diff)
iOS: use an explicit pointer to qiosViewController
As it stood, we always relied on the root view controller being a QIOSViewController if isQtApplication() returned true. For mixed application, this might not always be true as native code can choose to replace the root view controller at times, or even rip it out, and place it as a child of another (e.g UISplitViewController). This change will give an extra protection against that. Change-Id: I0cb85796a8b82f9037c32f9e85e04e1dc7aad8e2 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios/qiosglobal.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosglobal.h b/src/plugins/platforms/ios/qiosglobal.h
index 3be9f8bb21..fd328c9171 100644
--- a/src/plugins/platforms/ios/qiosglobal.h
+++ b/src/plugins/platforms/ios/qiosglobal.h
@@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE
class QPlatformScreen;
bool isQtApplication();
-QIOSViewController *rootViewController();
+QIOSViewController *qiosViewController();
CGRect toCGRect(const QRect &rect);
QRect fromCGRect(const CGRect &rect);