diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2015-01-19 17:13:26 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-01-23 19:47:57 +0100 |
commit | 73ef1ec693ad355d95cb6796e34d11e2ee5a1224 (patch) | |
tree | d05c72d0c647d89b1502c6fc026f54066a051a28 /src/plugins/platforms/ios/qiosviewcontroller.mm | |
parent | 8ca735762d8df2227cacf64a6e99ddeb8328256f (diff) |
iOS: Ignore statusbar changes for windows on external screens
Change-Id: Ib7919abb2da324f6ffa058e8b215bf566ff43e40
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm index 164b58d63e..fb60a759bd 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.mm +++ b/src/plugins/platforms/ios/qiosviewcontroller.mm @@ -296,6 +296,11 @@ if (!isQtApplication()) return; + // For now we only care about the main screen, as both the statusbar + // visibility and orientation is only appropriate for the main screen. + if (m_screen->uiScreen() != [UIScreen mainScreen]) + return; + // Prevent recursion caused by updating the status bar appearance (position // or visibility), which in turn may cause a layout of our subviews, and // a reset of window-states, which themselves affect the view controller |