aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativebehaviors/data/loop.qml
blob: 3e8d88734db032ce6b6fd3ffa5ac29a3d35262ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import QtQuick 2.0
Rectangle {
    width: 400
    height: 400
    Rectangle {
        id: rect
        objectName: "MyRect"
        width: 100; height: 100; color: "green"
        Behavior on x { NumberAnimation { duration: 200; } }
        onXChanged: x = 100;
    }
    states: State {
        name: "moved"
        PropertyChanges {
            target: rect
            x: 200
        }
    }
}