summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
blob: f2f6352c9d3be803dbdc51ebeaaa491d2662979e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.7
Rectangle {
    width: 400
    height: 400

    onColorChanged: {
        rect.x = 200
    }

    Rectangle {
        id: rect
        objectName: "MyRect"
        width: 100; height: 100; color: "green"
        Behavior on x { NumberAnimation { duration: 800; } }
    }
}