tests/auto/quick/qquickrepeater/data/intmodel.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Rectangle { |
| 4 | id: container |
| 5 | objectName: "container" |
| 6 | width: 240 |
| 7 | height: 320 |
| 8 | color: "white" |
| 9 | |
| 10 | function checkProperties() { |
| 11 | testObject.error = false; |
| 12 | if (repeater.delegate != comp) { |
| 13 | console.log("delegate property incorrect"); |
| 14 | testObject.error = true; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | Component { |
| 19 | id: comp |
| 20 | Item{} |
| 21 | } |
| 22 | |
| 23 | Repeater { |
| 24 | id: repeater |
| 25 | objectName: "repeater" |
| 26 | model: testData |
| 27 | delegate: comp |
| 28 | } |
| 29 | } |