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

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