tests/auto/declarative/qdeclarativerepeater/data/repeater1.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:10:48 +0300
changeset 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

import Qt 4.7

Rectangle {
    id: container
    objectName: "container"
    width: 240
    height: 320
    color: "white"
    Text {
        text: "Zero"
    }
    Repeater {
        id: repeater
        objectName: "repeater"
        width: 240
        height: 320
        model: testData
        Component {
            Text {
                y: index*20
                text: modelData
            }
        }
    }
    Text {
        text: "Last"
    }
}