summaryrefslogtreecommitdiffstats
path: root/tools/qml/deviceorientation.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-04 01:22:28 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-04 04:06:25 (GMT)
commitecff296323a81059810a91709f502921bc9277c2 (patch)
tree7208937647145b2e18234aae2d163ee68d92c1fa /tools/qml/deviceorientation.h
parentf6d3753892353e6064fa1fc3c4bf0ba2fad900a6 (diff)
downloadQt-ecff296323a81059810a91709f502921bc9277c2.zip
Qt-ecff296323a81059810a91709f502921bc9277c2.tar.gz
Qt-ecff296323a81059810a91709f502921bc9277c2.tar.bz2
Revert to Portrait/Landscape terminology for Orientation enum, with
additional PortraitInverted and LandscapeInverted values. TopUp etc. only indicates rotation which makes it difficult to resize the window according to whether the device is in Portrait or Landscape orientation.
Diffstat (limited to 'tools/qml/deviceorientation.h')
-rw-r--r--tools/qml/deviceorientation.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qml/deviceorientation.h b/tools/qml/deviceorientation.h
index fe73868..817bfc8 100644
--- a/tools/qml/deviceorientation.h
+++ b/tools/qml/deviceorientation.h
@@ -54,10 +54,10 @@ class DeviceOrientation : public QObject
public:
enum Orientation {
UnknownOrientation,
- TopUp,
- TopDown,
- LeftUp,
- RightUp
+ Portrait,
+ Landscape,
+ PortraitInverted,
+ LandscapeInverted
};
virtual Orientation orientation() const = 0;