summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanimations/data/nonTransitionBug.qml
blob: e9dc36edcc9bad7308d7ce5eb4a7a02db1581f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import Qt 4.7

Rectangle {
    id: root
    width: 200
    height: 200

    Rectangle {
        id: mover
        objectName: "mover"
    }

    states: [
        State {
            name: "free"
        },
        State {
            name: "left"
            PropertyChanges {
                restoreEntryValues: false
                target: mover
                x: 0
            }
        }
    ]

    transitions: Transition {
        PropertyAnimation { properties: "x"; duration: 50 }
    }
}