diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-06-08 00:59:53 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-06-08 00:59:53 (GMT) |
commit | 0656d1578e86a2e9e0e1ec1d3c79e8766415a86d (patch) | |
tree | 0593be8f73cdd09a94826e2d8fc2c7b1356c1016 /tests/auto/declarative/qdeclarativestates/data | |
parent | d660ea1a68d282763e8f574f066d2ef958cd3c1b (diff) | |
download | Qt-0656d1578e86a2e9e0e1ec1d3c79e8766415a86d.zip Qt-0656d1578e86a2e9e0e1ec1d3c79e8766415a86d.tar.gz Qt-0656d1578e86a2e9e0e1ec1d3c79e8766415a86d.tar.bz2 |
Add test for PropertyChanges with attached properties.
Task-number: QTBUG-11283
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/attachedPropertyChanges.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/attachedPropertyChanges.qml b/tests/auto/declarative/qdeclarativestates/data/attachedPropertyChanges.qml new file mode 100644 index 0000000..e17823b --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/attachedPropertyChanges.qml @@ -0,0 +1,20 @@ +import Qt.test 1.0 +import Qt 4.7 + +Item { + id: item + width: 100; height: 100 + MyRectangle.foo: 0 + + states: State { + name: "foo1" + PropertyChanges { + target: item + MyRectangle.foo: 1 + width: 50 + } + } + + Component.onCompleted: item.state = "foo1" +} + |