summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.mm
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2012-12-19 09:15:27 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:58 +0100
commit2dea9fdc3a04ccc9759427c6450e88cb78003381 (patch)
tree48760334249361e3deae29a3cbf245e6b8f6f407 /src/plugins/platforms/ios/qioswindow.mm
parentac0f6d1a349748ff82e1710c33e91e6b3f179a58 (diff)
iOS: add convenience function to get to the root QIOSViewController
It seems that we need to access our view controller from many places, and the syntax to do so is tricky to remember. So lets just add it to our global functions, with the added bonus of a using a little cache. Note: many of these functions could be made inline, but since one concern of the plugin will be the end size of the app, I prefer to trade size for speed at this point. We can always change this later. Change-Id: I578ea9ae8218d23d635b7728a930763ca53c4eaa Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.mm')
-rw-r--r--src/plugins/platforms/ios/qioswindow.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.mm b/src/plugins/platforms/ios/qioswindow.mm
index af184e2e7b..71816f7d94 100644
--- a/src/plugins/platforms/ios/qioswindow.mm
+++ b/src/plugins/platforms/ios/qioswindow.mm
@@ -197,7 +197,7 @@ QIOSWindow::QIOSWindow(QWindow *window)
, m_devicePixelRatio(1.0)
{
if (isQtApplication())
- [[UIApplication sharedApplication].delegate.window.rootViewController.view addSubview:m_view];
+ [rootViewController().view addSubview:m_view];
setWindowState(window->windowState());