From 74d2249e37ba8cdefba8d90345a620dc6adfa411 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Fri, 13 Sep 2013 13:11:45 +0200 Subject: Android: handle inverted orientations Add logic to detect InvertedPortrait and InvertedLandscape orientations and implement QPlatformScreen::nativeOrientation() for Android. Task-number: QTBUG-32144 Change-Id: I294506714ea0faa9eacd7a15e1cfc45342659964 Reviewed-by: BogDan Vatra --- src/plugins/platforms/eglfs/qeglfsscreen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.h') diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.h b/src/plugins/platforms/eglfs/qeglfsscreen.h index b04c85797f..06cafa20c8 100644 --- a/src/plugins/platforms/eglfs/qeglfsscreen.h +++ b/src/plugins/platforms/eglfs/qeglfsscreen.h @@ -65,6 +65,8 @@ public: QSizeF physicalSize() const; QDpi logicalDpi() const; + Qt::ScreenOrientation nativeOrientation() const; + Qt::ScreenOrientation orientation() const; QPlatformCursor *cursor() const; -- cgit v1.2.3