summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-19 01:45:47 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-21 23:04:58 (GMT)
commit0c1f1b8c8f5641609e1a07622127f4e0780c2247 (patch)
treef59b4736cd7563d1df75bbbbd604218e791c89e1 /tests/auto/declarative/qdeclarativestates/data
parent44b1fc2051df2bfd784ce847ee430edad68e3dbd (diff)
downloadQt-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.qml12
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 }
+ }
+ }
+}