path: root/src/gui/kernel/qplatformscreen_qpa.h
diff options
authorSamuel Rødal <>2011-10-04 13:11:30 +0200
committerQt by Nokia <>2011-10-07 22:23:30 +0200
commitc66b7cf55b6913dcf33d49d4f6bf9db51ccf39a8 (patch)
tree430983856f993de5618aa5d8d0198b2db98eda97 /src/gui/kernel/qplatformscreen_qpa.h
parent090d825e1d853a2ed875329a8350b0a727c3527e (diff)
Added Orientation API to QScreen and QWindow.
QScreen now has a primary and current orientation, and a QWindow can set its orientation as well. The current screen orientation is just a hint to the application. Change-Id: I4635982cfac2d16634d4edd5c6ab78e9d0ac55a4 Reviewed-on: Reviewed-by: Paul Olav Tvete <> Sanity-Review: Qt Sanity Bot <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/gui/kernel/qplatformscreen_qpa.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformscreen_qpa.h b/src/gui/kernel/qplatformscreen_qpa.h
index 6917d5eca5..64115a6cd5 100644
--- a/src/gui/kernel/qplatformscreen_qpa.h
+++ b/src/gui/kernel/qplatformscreen_qpa.h
@@ -99,6 +99,9 @@ public:
virtual QSizeF physicalSize() const;
virtual QDpi logicalDpi() const;
+ virtual Qt::ScreenOrientation currentOrientation() const;
+ virtual Qt::ScreenOrientation primaryOrientation() const;
virtual QWindow *topLevelAt(const QPoint &point) const;
virtual QList<QPlatformScreen *> virtualSiblings() const;