summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/animations/data
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-01 05:20:44 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-01 05:20:44 (GMT)
commit789d4e494565a3588431c7a640bb8e07e98e04be (patch)
treee0e1288e5171b19f87bcd91f308e358622490843 /tests/auto/declarative/animations/data
parent6c51b1c9e456f39d4e75303fe74d348e7f859e1b (diff)
parenta6f90ca4d73365d37bdc4eaf8fe15cf55fe1bf83 (diff)
downloadQt-789d4e494565a3588431c7a640bb8e07e98e04be.zip
Qt-789d4e494565a3588431c7a640bb8e07e98e04be.tar.gz
Qt-789d4e494565a3588431c7a640bb8e07e98e04be.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative/animations/data')
-rw-r--r--tests/auto/declarative/animations/data/attached.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/declarative/animations/data/attached.qml b/tests/auto/declarative/animations/data/attached.qml
new file mode 100644
index 0000000..0fb6f8c
--- /dev/null
+++ b/tests/auto/declarative/animations/data/attached.qml
@@ -0,0 +1,34 @@
+import Qt 4.6
+
+Rectangle {
+ width: 180; height: 200;
+
+ Component {
+ id: delegate
+ Rectangle {
+ id: wrapper
+ width: 180; height: 200
+ color: "blue"
+
+ states: State {
+ name: "otherState"
+ PropertyChanges { target: wrapper; color: "green" }
+ }
+
+ transitions: Transition {
+ PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
+ ScriptAction { script: console.log(ListView.delayRemove ? "on" : "off") }
+ }
+
+ Component.onCompleted: {
+ console.log(ListView.delayRemove ? "on" : "off");
+ wrapper.state = "otherState"
+ }
+ }
+ }
+
+ ListView {
+ model: 1
+ delegate: delegate
+ }
+}