diff options
Diffstat (limited to 'tests/auto/declarative/qsgrepeater/data/objlist.qml')
-rw-r--r-- | tests/auto/declarative/qsgrepeater/data/objlist.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgrepeater/data/objlist.qml b/tests/auto/declarative/qsgrepeater/data/objlist.qml new file mode 100644 index 0000000000..c49d5926e5 --- /dev/null +++ b/tests/auto/declarative/qsgrepeater/data/objlist.qml @@ -0,0 +1,21 @@ +import QtQuick 2.0 + +Rectangle { + id: container + objectName: "container" + width: 240 + height: 320 + color: "white" + Repeater { + id: repeater + objectName: "repeater" + model: testData + property int errors: 0 + property int instantiated: 0 + Component { + Item{ + Component.onCompleted: {if(index!=modelData.idx) repeater.errors += 1; repeater.instantiated++} + } + } + } +} |