tests/auto/declarative/qdeclarativepositioners/data/repeatertest.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 Item {
       
     4     width: 640
       
     5     height: 480
       
     6     Row {
       
     7         Repeater{ model: 3;
       
     8             delegate: Component {
       
     9                 Rectangle {
       
    10                     color: "red"
       
    11                     width: 50
       
    12                     height: 50
       
    13                     z: {if(index == 0){2;}else if(index == 1){1;} else{3;}}
       
    14                     objectName: {if(index == 0){"one";}else if(index == 1){"two";} else{"three";}}
       
    15 
       
    16                 }
       
    17             }
       
    18         }
       
    19     }
       
    20 }