diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-02-25 07:07:16 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-02-25 07:09:05 (GMT) |
commit | b469289a6ed067be92eb24239c59f5cd1f5f7956 (patch) | |
tree | 9d176cff9128c342333d710b062097f771eee72f /tests/auto/declarative/qdeclarativestates/data | |
parent | e6c85641ddc6068b1d50a52b95b136f366cad15a (diff) | |
download | Qt-b469289a6ed067be92eb24239c59f5cd1f5f7956.zip Qt-b469289a6ed067be92eb24239c59f5cd1f5f7956.tar.gz Qt-b469289a6ed067be92eb24239c59f5cd1f5f7956.tar.bz2 |
Document and test resetting properties in a state change.
Task-number: QT-1817
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/reset.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/reset.qml b/tests/auto/declarative/qdeclarativestates/data/reset.qml new file mode 100644 index 0000000..a0a2b8c --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/reset.qml @@ -0,0 +1,20 @@ +import Qt 4.6 + +Rectangle { + width: 640 + height: 480 + Text { + id: theText + width: 50 + wrap: true + text: "a text string that is longer than 50 pixels" + } + + states: State { + name: "state1" + PropertyChanges { + target: theText + width: undefined + } + } +} |