diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-08-05 04:39:52 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-08-05 04:39:52 (GMT) |
commit | 4ad82cec67ce40dd167be214a2a4dcdcf6236d9d (patch) | |
tree | 17e01c79c976f64f746c7a220384d48be98cf224 /tests/auto | |
parent | eb8c7d19c98d547f89caa1b5866fd2b5e43b32bf (diff) | |
download | Qt-4ad82cec67ce40dd167be214a2a4dcdcf6236d9d.zip Qt-4ad82cec67ce40dd167be214a2a4dcdcf6236d9d.tar.gz Qt-4ad82cec67ce40dd167be214a2a4dcdcf6236d9d.tar.bz2 |
Add missing test file.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qdeclarativefocusscope/data/signalEmission.qml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativefocusscope/data/signalEmission.qml b/tests/auto/declarative/qdeclarativefocusscope/data/signalEmission.qml new file mode 100644 index 0000000..07601c7 --- /dev/null +++ b/tests/auto/declarative/qdeclarativefocusscope/data/signalEmission.qml @@ -0,0 +1,33 @@ +import Qt 4.7 + +Rectangle { + width: 200 + height: 200 + + FocusScope { + focus: true + Rectangle { + objectName: "item1" + color: "blue" + onFocusChanged: focus ? color = "red" : color = "blue" + } + Rectangle { + objectName: "item2" + color: "blue" + onFocusChanged: focus ? color = "red" : color = "blue" + } + } + + FocusScope { + Rectangle { + objectName: "item3" + color: "blue" + onFocusChanged: focus ? color = "red" : color = "blue" + } + Rectangle { + objectName: "item4" + color: "blue" + onFocusChanged: focus ? color = "red" : color = "blue" + } + } +} |