summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data/reset.qml
blob: 5725320be58a3b7aa1d1a090b91db904a9a03d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Qt 4.7

Rectangle {
    width: 640
    height: 480
    Text {
        id: theText
        width: 40
        wrapMode: Text.WordWrap
        text: "a text string that is longer than 40 pixels"
    }

    states: State {
        name: "state1"
        PropertyChanges {
            target: theText
            width: undefined
        }
    }
}