summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-05-12 13:12:13 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-05-12 13:12:13 (GMT)
commitbd11cdf472674af3b00d7d64c64023adbf5ee725 (patch)
tree99eb333a12f7e0d109b9ce9ff51120c612669d7a /tests/auto/declarative/qdeclarativeviewer/data/orientation.qml
parent50fa9ebe8fc0e7eca7536a8663c86cd6b98b2c04 (diff)
parent0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c (diff)
downloadQt-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.qml10
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