diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-07-04 15:03:43 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-07-23 13:23:23 +0200 |
commit | 66c47292bdf0843148b3c557321514d4d08c8ac6 (patch) | |
tree | 67faab600601cb8c002603074e8906c5017f1898 /src/plugins/platforms/ios/qiosviewcontroller.h | |
parent | 3770f4b1489b8d0d8fd6ffef23b8aac7dbf2e33b (diff) |
iOS: Let QScreen manage UIWindow and root view-controller
Instead of having the application delegate set up a UIWindow and root
view-controller, we move the responsibility to QScreen, since in a multi
screen scenario we will need one UIWindow per screen, as well as one
root viewcontroller per window.
Change-Id: If5b0d44b8f8a697d830b33b4fe420bff56a7629b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiosviewcontroller.h')
-rw-r--r-- | src/plugins/platforms/ios/qiosviewcontroller.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.h b/src/plugins/platforms/ios/qiosviewcontroller.h index a0017808d3..5e95cdd3ee 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.h +++ b/src/plugins/platforms/ios/qiosviewcontroller.h @@ -41,7 +41,13 @@ #import <UIKit/UIKit.h> -@interface QIOSViewController : UIViewController +class QIOSScreen; + +@interface QIOSViewController : UIViewController { + QIOSScreen *m_screen; +} + +- (id)initWithQIOSScreen:(QIOSScreen *)screen; - (BOOL)prefersStatusBarHidden; @end |