diff options
author | Martin Smith <msmith@trolltech.com> | 2010-05-12 13:12:13 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-05-12 13:12:13 (GMT) |
commit | bd11cdf472674af3b00d7d64c64023adbf5ee725 (patch) | |
tree | 99eb333a12f7e0d109b9ce9ff51120c612669d7a /tests/auto/declarative/qdeclarativeviewer/data/orientation.qml | |
parent | 50fa9ebe8fc0e7eca7536a8663c86cd6b98b2c04 (diff) | |
parent | 0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c (diff) | |
download | Qt-bd11cdf472674af3b00d7d64c64023adbf5ee725.zip Qt-bd11cdf472674af3b00d7d64c64023adbf5ee725.tar.gz Qt-bd11cdf472674af3b00d7d64c64023adbf5ee725.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativeviewer/data/orientation.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeviewer/data/orientation.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml b/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml new file mode 100644 index 0000000..687fac6 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml @@ -0,0 +1,10 @@ +import Qt 4.7 +Rectangle { + color: "black" + width: (runtime.orientation == Orientation.Landscape) ? 300 : 200 + height: (runtime.orientation == Orientation.Landscape) ? 200 : 300 + Text { + text: runtime.orientation == Orientation.Landscape ? "Landscape" : "Portrait" + color: "white" + } +}
\ No newline at end of file |