diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-11-11 06:44:19 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-11-11 06:44:19 (GMT) |
commit | 7703e3ec3a8b13278f52aeda480ab36b548fbf99 (patch) | |
tree | bdd7a46181b0b6d2dd3028c746b1da517c09db1b /tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml | |
parent | 49e1b989213028dac8557d4e74ab530f77fc8a07 (diff) | |
parent | 544c936c8db0560174f27241fbbe41c172e4b0ce (diff) | |
download | Qt-7703e3ec3a8b13278f52aeda480ab36b548fbf99.zip Qt-7703e3ec3a8b13278f52aeda480ab36b548fbf99.tar.gz Qt-7703e3ec3a8b13278f52aeda480ab36b548fbf99.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts:
src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp
Diffstat (limited to 'tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml')
-rw-r--r-- | tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml b/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml new file mode 100644 index 0000000..eabba73 --- /dev/null +++ b/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml @@ -0,0 +1,40 @@ +import Qt 4.6 + +Rectangle { + color: "blue" + width: 320 + height: 240 + id: Page + Rectangle { + id: MyRectangle + width: 100 + height: 100 + color: "red" + x: 10 + } + states: [ + State { + name: "hello" + PropertyChanges { + target: MyRectangle + x: 100 + } + PropertyChanges { + target: MyMouseRegion + onClicked: Page.state = '' + } + } + ] + transitions: [ + Transition { + NumberAnimation { + matchProperties: "x" + } + } + ] + MouseRegion { + id: MyMouseRegion + anchors.fill: parent + onClicked: { Page.state= 'hello' } + } +} |