diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-21 01:50:11 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-21 01:50:11 (GMT) |
commit | cbffed3af04495f7bd28a054a1c04ee33ca43a80 (patch) | |
tree | 3b87ce85cde837f8669c8104c8a2ee51de22f487 /tests/auto/declarative/visual/bindinganimation | |
parent | f6b9e75f3f7fd7bdef3855dd07ffdc9fa10b2dae (diff) | |
download | Qt-cbffed3af04495f7bd28a054a1c04ee33ca43a80.zip Qt-cbffed3af04495f7bd28a054a1c04ee33ca43a80.tar.gz Qt-cbffed3af04495f7bd28a054a1c04ee33ca43a80.tar.bz2 |
Convert visual autotests.
Diffstat (limited to 'tests/auto/declarative/visual/bindinganimation')
3 files changed, 41 insertions, 20 deletions
diff --git a/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml b/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml new file mode 100644 index 0000000..56878dc --- /dev/null +++ b/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml @@ -0,0 +1,40 @@ +Rect { + color: "blue" + width: 320 + height: 240 + id: Page + Rect { + id: MyRect + width: 100 + height: 100 + color: "red" + x: 10 + } + states: [ + State { + name: "hello" + SetProperty { + target: MyRect + property: "x" + binding: 100 + } + SetProperty { + target: MyMouseRegion + property: "onClicked" + value: "Page.currentState = ''" + } + } + ] + transitions: [ + Transition { + NumericAnimation { + properties: "x" + } + } + ] + MouseRegion { + id: MyMouseRegion + anchors.fill: parent + onClicked: { Page.currentState= 'hello' } + } +} diff --git a/tests/auto/declarative/visual/bindinganimation/bindinganimation.xml b/tests/auto/declarative/visual/bindinganimation/bindinganimation.xml deleted file mode 100644 index 30b0b6a..0000000 --- a/tests/auto/declarative/visual/bindinganimation/bindinganimation.xml +++ /dev/null @@ -1,19 +0,0 @@ -<Rect color="blue" width="320" height="240" id="Page"> - <Rect id="MyRect" width="100" height="100" color="red" x="{10}" /> - - <states> - <State name="hello"> - <SetProperty target="{MyRect}" property="x" binding="100" /> - <SetProperty target="{MyMouseRegion}" property="onClick" value="Page.currentState = ''" /> - </State> - </states> - - <transitions> - <Transition> - <NumericAnimation properties="x" /> - </Transition> - </transitions> - - <MouseRegion id="MyMouseRegion" anchors.fill="{parent}" onClick="Page.currentState= 'hello'" /> - -</Rect> diff --git a/tests/auto/declarative/visual/bindinganimation/test b/tests/auto/declarative/visual/bindinganimation/test index 964c489..bb59333 100644 --- a/tests/auto/declarative/visual/bindinganimation/test +++ b/tests/auto/declarative/visual/bindinganimation/test @@ -1 +1 @@ -bindinganimation.xml +bindinganimation.qml |