From 07538de8b105b92e4b665f5d8c59852ab894f94b Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Thu, 12 Sep 2013 15:23:31 +0200 Subject: Make nativeOrientation available in the public API The QtSensors module defines the coordinate system relative to QPlatformScreen::nativeOrientation(). However, that is not part of the public Qt API. Task-number: QTBUG-32144 Change-Id: I6941c5b8589219064749f18880775b803f23fbbd Reviewed-by: Gunnar Sletta --- src/gui/kernel/qscreen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/kernel/qscreen.h') diff --git a/src/gui/kernel/qscreen.h b/src/gui/kernel/qscreen.h index 9fe4379646..bdd5939657 100644 --- a/src/gui/kernel/qscreen.h +++ b/src/gui/kernel/qscreen.h @@ -85,6 +85,7 @@ class Q_GUI_EXPORT QScreen : public QObject Q_PROPERTY(qreal logicalDotsPerInch READ logicalDotsPerInch NOTIFY logicalDotsPerInchChanged) Q_PROPERTY(Qt::ScreenOrientation primaryOrientation READ primaryOrientation NOTIFY primaryOrientationChanged) Q_PROPERTY(Qt::ScreenOrientation orientation READ orientation NOTIFY orientationChanged) + Q_PROPERTY(Qt::ScreenOrientation nativeOrientation READ nativeOrientation) Q_PROPERTY(qreal refreshRate READ refreshRate NOTIFY refreshRateChanged) public: @@ -122,6 +123,7 @@ public: Qt::ScreenOrientation primaryOrientation() const; Qt::ScreenOrientation orientation() const; + Qt::ScreenOrientation nativeOrientation() const; Qt::ScreenOrientations orientationUpdateMask() const; void setOrientationUpdateMask(Qt::ScreenOrientations mask); -- cgit v1.2.3