tests/auto/quick/qquickrepeater/data/repeater1.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | Rectangle { |
| 5 | id: container |
| 6 | objectName: "container" |
| 7 | width: 240 |
| 8 | height: 320 |
| 9 | color: "white" |
| 10 | Text { |
| 11 | text: "Zero" |
| 12 | } |
| 13 | Repeater { |
| 14 | id: repeater |
| 15 | objectName: "repeater" |
| 16 | width: 240 |
| 17 | height: 320 |
| 18 | model: testData |
| 19 | Component { |
| 20 | Text { |
| 21 | y: index*20 |
| 22 | text: modelData |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | Text { |
| 27 | text: "Last" |
| 28 | } |
| 29 | } |
| 30 | } |