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 /tests | |
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 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativeviewer/data/orientation.qml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml b/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml index be911a3..57db82d 100644 --- a/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml +++ b/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml @@ -1,18 +1,18 @@ import Qt 4.7 Rectangle { color: "black" - width: (runtime.orientation == Orientation.RightUp || runtime.orientation == Orientation.LeftUp) ? 300 : 200 - height: (runtime.orientation == Orientation.RightUp || runtime.orientation == Orientation.LeftUp) ? 200 : 300 + width: (runtime.orientation == Orientation.Landscape || runtime.orientation == Orientation.LandscapeInverted) ? 300 : 200 + height: (runtime.orientation == Orientation.Landscape || runtime.orientation == Orientation.LandscapeInverted) ? 200 : 300 Text { text: { - if (runtime.orientation == Orientation.TopUp) - return "TopUp" - if (runtime.orientation == Orientation.TopDown) - return "TopDown" - if (runtime.orientation == Orientation.LeftUp) - return "LeftUp" - if (runtime.orientation == Orientation.RightUp) - return "RightUp" + if (runtime.orientation == Orientation.Portrait) + return "Portrait" + if (runtime.orientation == Orientation.PortraitInverted) + return "PortraitInverted" + if (runtime.orientation == Orientation.Landscape) + return "Landscape" + if (runtime.orientation == Orientation.LandscapeInverted) + return "LandscapeInverted" } color: "white" } |