summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-11-22 13:15:35 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-25 23:56:30 +0100
commit6318a6879db56e804108b1bea08fc3dee7d3b62a (patch)
tree2f282e0e38ea22ab0a4a1380651927889a9c4a5e /src/plugins
parent7201148be075632124db3d6a4046b590dad09884 (diff)
iOS: Don't enable translucent statusbar for iOS6 on iPads
It's only available on iPhone/iPods. Change-Id: I61b45c84ddb2b3db46fff36286a6582406fa7d26 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/ios/qiosapplicationdelegate.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/platforms/ios/qiosapplicationdelegate.mm b/src/plugins/platforms/ios/qiosapplicationdelegate.mm
index e325666f69..cf702c82af 100644
--- a/src/plugins/platforms/ios/qiosapplicationdelegate.mm
+++ b/src/plugins/platforms/ios/qiosapplicationdelegate.mm
@@ -58,6 +58,7 @@
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.window.rootViewController = [[[QIOSViewController alloc] init] autorelease];
+#if QT_IOS_DEPLOYMENT_TARGET_BELOW(__IPHONE_7_0)
QSysInfo::MacVersion iosVersion = QSysInfo::MacintoshVersion;
// We prefer to keep the root viewcontroller in fullscreen layout, so that
@@ -67,12 +68,14 @@
if (iosVersion < QSysInfo::MV_IOS_7_0)
self.window.rootViewController.wantsFullScreenLayout = YES;
- // Use translucent statusbar by default on iOS6 (unless the user changed the
- // default in the Info.plist), so that windows placed under the stausbar are
+ // Use translucent statusbar by default on iOS6 iPhones (unless the user changed
+ // the default in the Info.plist), so that windows placed under the stausbar are
// still visible, just like on iOS7.
if (iosVersion >= QSysInfo::MV_IOS_6_0 && iosVersion < QSysInfo::MV_IOS_7_0
+ && [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone
&& [UIApplication sharedApplication].statusBarStyle == UIStatusBarStyleDefault)
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
+#endif
self.window.hidden = NO;