diff options
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml')
-rw-r--r-- | tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml b/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml new file mode 100644 index 0000000000..85e1608bbf --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativerepeater/data/intmodel.qml @@ -0,0 +1,29 @@ +import QtQuick 1.0 + +Rectangle { + id: container + objectName: "container" + width: 240 + height: 320 + color: "white" + + function checkProperties() { + testObject.error = false; + if (repeater.delegate != comp) { + console.log("delegate property incorrect"); + testObject.error = true; + } + } + + Component { + id: comp + Item{} + } + + Repeater { + id: repeater + objectName: "repeater" + model: testData + delegate: comp + } +} |