diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-12-09 15:05:39 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-09-24 11:52:38 +0200 |
commit | d2c925b9774ef63c008e1a0ffb992b805e8cc3ab (patch) | |
tree | 84964bf74ab0557de18b2d5220727aa6080419ab | |
parent | d61d6387215003bbccf519f7f5e16011b9014d13 (diff) |
iOS: Update screen properties more consistently
Instead of updating screen properties (and hence laying out top level
windows) in willAnimateRotationToInterfaceOrientation, we do it in
the more catch-all viewWillLayoutSubviews, which also handles changes
to the orientation while the application is in the background, as well
as changes to the statusbar frame/size, eg. while being in a call.
Change-Id: Ib4a08af2f3a56db426a10ff1ed819867895b5a5a
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
-rw-r--r-- | src/plugins/platforms/ios/qiosviewcontroller.mm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm index 73f1b51b83..940e6b075e 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.mm +++ b/src/plugins/platforms/ios/qiosviewcontroller.mm @@ -106,13 +106,10 @@ } #endif -- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration +- (void)viewWillLayoutSubviews { - Q_UNUSED(duration); - Q_UNUSED(interfaceOrientation); - if (!QCoreApplication::instance()) - return; // FIXME: Store orientation for later (?) + return; m_screen->updateProperties(); } |