diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-19 01:45:47 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-21 23:04:58 (GMT) |
commit | 0c1f1b8c8f5641609e1a07622127f4e0780c2247 (patch) | |
tree | f59b4736cd7563d1df75bbbbd604218e791c89e1 /tests/auto/declarative/qdeclarativestates/data | |
parent | 44b1fc2051df2bfd784ce847ee430edad68e3dbd (diff) | |
download | Qt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.zip Qt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.tar.gz Qt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.tar.bz2 |
Produce an error when trying to create objects in a PropertyChanges.
State-specific object lifecycle management will be addressed in a
future release.
Task-number: QTBUG-8318
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/illegalObj.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/illegalObj.qml b/tests/auto/declarative/qdeclarativestates/data/illegalObj.qml new file mode 100644 index 0000000..480764e --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/illegalObj.qml @@ -0,0 +1,12 @@ +import Qt 4.6 + +Rectangle { + id: myItem + + states : State { + PropertyChanges { + target: myItem + children: Item { id: newItem } + } + } +} |