summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/focusscope/test2.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:13:15 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:18:58 (GMT)
commita1c1ff8561e8aefe4b4d09af1273bcb98c192772 (patch)
tree822b629abfce43ca3a068c3850a138f529f2180c /tests/auto/declarative/visual/focusscope/test2.qml
parent09b117a97edd0791fb2c30f7a73704c926327ba3 (diff)
downloadQt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.zip
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.gz
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.bz2
Update visual autotests and visual autotest infrastructure
Diffstat (limited to 'tests/auto/declarative/visual/focusscope/test2.qml')
-rw-r--r--tests/auto/declarative/visual/focusscope/test2.qml40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/focusscope/test2.qml b/tests/auto/declarative/visual/focusscope/test2.qml
new file mode 100644
index 0000000..5b6971a
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/test2.qml
@@ -0,0 +1,40 @@
+import Qt 4.6
+
+Rectangle {
+ color: "white"
+ width: 800
+ height: 600
+
+ Text { text: "All five rectangles should be red" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+ }
+ }
+ }
+ }
+ }
+
+}