diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2015-01-19 17:11:26 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-01-24 13:23:55 +0100 |
commit | 29f96fab2424da3748be73348a4093f3a7fff8ac (patch) | |
tree | b2c55782d8b2d82900ea2c48c1c23960f982cd83 /src/plugins/platforms/ios/qiosviewcontroller.mm | |
parent | d824c7bcc546d80eabcdad34c9e2c0178a734858 (diff) |
iOS: Limit auto-rotation to device screen (excludes external screens)
An external screen should always stay in the native orientation of the
screen, and not be affected by rotations of the device. If the user
requires the external content to follow the device rotation, this
can be done explicitly by listening to orientation changes of the
main screen, or using QSensors.
Change-Id: I3a98655d11915f0db107930e7d97a24417656bc9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiosviewcontroller.mm')
-rw-r--r-- | src/plugins/platforms/ios/qiosviewcontroller.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm index 365de974aa..0fb6122960 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.mm +++ b/src/plugins/platforms/ios/qiosviewcontroller.mm @@ -239,7 +239,7 @@ -(BOOL)shouldAutorotate { - return !self.lockedOrientation; + return m_screen->uiScreen() == [UIScreen mainScreen] && !self.lockedOrientation; } #if QT_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__IPHONE_6_0) |