diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-04 01:22:28 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-04 04:06:25 (GMT) |
commit | ecff296323a81059810a91709f502921bc9277c2 (patch) | |
tree | 7208937647145b2e18234aae2d163ee68d92c1fa /tools/qml/deviceorientation.h | |
parent | f6d3753892353e6064fa1fc3c4bf0ba2fad900a6 (diff) | |
download | Qt-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.h | 8 |
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; |