summaryrefslogtreecommitdiffstats
path: root/tools/qml/deviceorientation.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-02 07:19:22 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-02 07:20:28 (GMT)
commit74232ac426d9911417e880334292925f47f0df1e (patch)
treedc12ff691f7045a8a2ed620db128cb4144c9b995 /tools/qml/deviceorientation.h
parent04eb4d19a32c92453c6a74037e4ddf065e5e4f49 (diff)
downloadQt-74232ac426d9911417e880334292925f47f0df1e.zip
Qt-74232ac426d9911417e880334292925f47f0df1e.tar.gz
Qt-74232ac426d9911417e880334292925f47f0df1e.tar.bz2
QML viewer now supports TopUp, TopDown, RightUp and LeftUp orientations
instead of Portrait/Landscape. The new orientations are named the same as the orientations in the QtMobility sensors module. Task-number: QTBUG-11106 Reviewed-by: akennedy
Diffstat (limited to 'tools/qml/deviceorientation.h')
-rw-r--r--tools/qml/deviceorientation.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/qml/deviceorientation.h b/tools/qml/deviceorientation.h
index d209005..fe73868 100644
--- a/tools/qml/deviceorientation.h
+++ b/tools/qml/deviceorientation.h
@@ -52,7 +52,14 @@ class DeviceOrientation : public QObject
Q_OBJECT
Q_ENUMS(Orientation)
public:
- enum Orientation { UnknownOrientation, Portrait, Landscape };
+ enum Orientation {
+ UnknownOrientation,
+ TopUp,
+ TopDown,
+ LeftUp,
+ RightUp
+ };
+
virtual Orientation orientation() const = 0;
virtual void setOrientation(Orientation) = 0;