aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml')
-rw-r--r--tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml b/tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml
new file mode 100644
index 0000000000..0280df0620
--- /dev/null
+++ b/tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.0
+
+Item {
+ ListModel {
+ id: lm;
+ }
+
+ Component.onCompleted: {
+ lm.append({ subModel: [ {d:0} ] });
+ rep.model = lm.get(0).subModel;
+ rep.model;
+ lm.remove(0);
+ rep.model;
+ }
+
+ Repeater {
+ objectName: "rep"
+ id: rep
+ }
+}