99 :(NSNotification *)notification
103 NSString *infoValue =
@"";
104 switch ([UIDevice currentDevice].orientation) {
105 case UIDeviceOrientationUnknown:
107 case UIDeviceOrientationPortrait:
108 newOrientation = UIInterfaceOrientationPortrait;
109 infoValue =
@"UIInterfaceOrientationPortrait";
111 case UIDeviceOrientationPortraitUpsideDown:
112 newOrientation = UIInterfaceOrientationPortraitUpsideDown;
113 infoValue =
@"UIInterfaceOrientationPortraitUpsideDown";
115 case UIDeviceOrientationLandscapeLeft:
116 newOrientation = UIInterfaceOrientationLandscapeRight;
117 infoValue =
@"UIInterfaceOrientationLandscapeRight";
119 case UIDeviceOrientationLandscapeRight:
120 newOrientation = UIInterfaceOrientationLandscapeLeft;
121 infoValue =
@"UIInterfaceOrientationLandscapeLeft";
123 case UIDeviceOrientationFaceUp:
124 case UIDeviceOrientationFaceDown:
132 NSBundle *bundle = [NSBundle mainBundle];
133 NSArray *orientations = [bundle objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"];
134 if (![orientations containsObject:infoValue])
138 [UIApplication sharedApplication].statusBarOrientation =
mOrientation;
QList< QPlatformScreen * > screens() const
Accessor function to a list of all the screens on the current system.
const T & at(int i) const
Returns the item at index position i in the list.
void updateInterfaceOrientation()
UIInterfaceOrientation mOrientation
static QUIKitIntegration * instance()
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...