summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-12-06 14:13:40 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:47 +0100
commit5d878cae1d090b9c7d5730a85667e569e67c17d4 (patch)
tree8b2fbdf54caf78e16bef7fbc24bb64bf8241e44d /src/plugins/platforms/ios/qioswindow.mm
parentad4cf5068cd39b9ca16bdd9705d0a3ef61783d33 (diff)
iOS: Remove requestWindowOrientation from QIOSWindow
The API is scheduled to be removed in qtbase in time for Qt 5.0. Change-Id: Ie34d6cb79fcd81b0ce02892529e3e7184ddfa096 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.mm')
-rw-r--r--src/plugins/platforms/ios/qioswindow.mm16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.mm b/src/plugins/platforms/ios/qioswindow.mm
index 4e10c19ecc..0b2b5fcfd7 100644
--- a/src/plugins/platforms/ios/qioswindow.mm
+++ b/src/plugins/platforms/ios/qioswindow.mm
@@ -258,22 +258,6 @@ void QIOSWindow::handleContentOrientationChange(Qt::ScreenOrientation orientatio
[[UIApplication sharedApplication] setStatusBarOrientation:uiOrientation animated:NO];
}
-Qt::ScreenOrientation QIOSWindow::requestWindowOrientation(Qt::ScreenOrientation orientation)
-{
- if (!m_view.window)
- return Qt::PortraitOrientation;
- UIViewController *viewController = m_view.window.rootViewController;
- if (!viewController || [viewController isKindOfClass:[QIOSViewController class]] == false) {
- return convertToQtOrientation(viewController.interfaceOrientation);
- } else {
- QIOSViewController *qiosViewController = static_cast<QIOSViewController *>(viewController);
- if ([qiosViewController rotateToDeviceOrientation])
- return orientation;
- else
- return convertToQtOrientation(viewController.interfaceOrientation);
- }
-}
-
GLuint QIOSWindow::framebufferObject(const QIOSContext &context) const
{
static GLuint framebuffer = 0;