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

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