aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativeanimations/data/nonTransitionBug.qml
blob: 909c533e7b6332bc2688a37155eaeb64eae29f89 (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 2.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 }
    }
}