diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2012-12-18 12:58:43 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-27 23:55:57 +0100 |
commit | 5b452a502214a927c54b7cc6e4fb81a7c2141267 (patch) | |
tree | 60a016f72a3745f505c6cf1ea03f9ec80ca66eaf /src | |
parent | 31796ca8abb8878165c7099145b08abfdf8bf1e3 (diff) |
iOS: update primary orientation when the rotation starts
We need to update primary orientation when the rotation starts, and
not when it ends, so that we are in sync with the resize that happens
to the backingstore upon layoutSubviews.
Change-Id: I466a2d135e6c15550c6207c9659871629d748b73
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/ios/qiosviewcontroller.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm index 6950288912..a441258f4e 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.mm +++ b/src/plugins/platforms/ios/qiosviewcontroller.mm @@ -67,10 +67,10 @@ return UIInterfaceOrientationMaskAll; } -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { - Q_UNUSED(fromInterfaceOrientation); - Qt::ScreenOrientation orientation = toQtScreenOrientation(self.interfaceOrientation); + Q_UNUSED(duration); + Qt::ScreenOrientation orientation = toQtScreenOrientation(toInterfaceOrientation); if (orientation == -1) return; |