diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-11 21:35:45 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-11 22:49:39 (GMT) |
commit | fe9e91d5b9a5504fdc00f53abd5972621e7fa7dd (patch) | |
tree | 28c25d69001ef4dd4181ddf465b373491a61932b /tests/auto/declarative/qmlanimations/data/attached.qml | |
parent | 6e0c76a209b87e306e48266962f5668237e63c62 (diff) | |
download | Qt-fe9e91d5b9a5504fdc00f53abd5972621e7fa7dd.zip Qt-fe9e91d5b9a5504fdc00f53abd5972621e7fa7dd.tar.gz Qt-fe9e91d5b9a5504fdc00f53abd5972621e7fa7dd.tar.bz2 |
Adds qml prefix to all declarative autotests
Diffstat (limited to 'tests/auto/declarative/qmlanimations/data/attached.qml')
-rw-r--r-- | tests/auto/declarative/qmlanimations/data/attached.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlanimations/data/attached.qml b/tests/auto/declarative/qmlanimations/data/attached.qml new file mode 100644 index 0000000..0fb6f8c --- /dev/null +++ b/tests/auto/declarative/qmlanimations/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 + } +} |