tests/auto/declarative/qdeclarativeitem/data/childrenRect.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     width: 400
       
     5     height: 400
       
     6 
       
     7     property int childCount: 0;
       
     8 
       
     9     Item {
       
    10         objectName: "testItem"
       
    11         width: childrenRect.width
       
    12         height: childrenRect.height
       
    13 
       
    14         Repeater {
       
    15             id: repeater
       
    16             model: childCount
       
    17             delegate: Rectangle {
       
    18                 x: index*10
       
    19                 y: index*20
       
    20                 width: 10
       
    21                 height: 20
       
    22 
       
    23                 color: "red"
       
    24             }
       
    25         }
       
    26     }
       
    27 }