summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanimations/data/nonTransitionBug.qml
blob: 04741ff348b070ab9044d1e2f9b8d3283f2dd2ad (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 QtQuick 1.0

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 }
    }
}