tests/auto/declarative/qdeclarativerepeater/data/repeater1.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     id: container
       
     5     objectName: "container"
       
     6     width: 240
       
     7     height: 320
       
     8     color: "white"
       
     9     Text {
       
    10         text: "Zero"
       
    11     }
       
    12     Repeater {
       
    13         id: repeater
       
    14         objectName: "repeater"
       
    15         width: 240
       
    16         height: 320
       
    17         model: testData
       
    18         Component {
       
    19             Text {
       
    20                 y: index*20
       
    21                 text: modelData
       
    22             }
       
    23         }
       
    24     }
       
    25     Text {
       
    26         text: "Last"
       
    27     }
       
    28 }