tests/auto/declarative/qdeclarativerepeater/data/repeater2.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 21:20:32 +0300
changeset 34 a33bf25e6f72
parent 33 3e2da88830cd
permissions -rw-r--r--
Revision: 201033 Kit: 201035

import Qt 4.7

Rectangle {
    width: 240
    height: 320
    color: "white"
    Component {
        id: myDelegate
        Item {
            objectName: "myDelegate"
            height: 20
            width: 240
            Text {
                objectName: "myName"
                text: name
            }
            Text {
                objectName: "myNumber"
                x: 100
                text: number
            }
        }
    }
    Column {
        id: container
        objectName: "container"
        Repeater {
            id: repeater
            objectName: "repeater"
            width: 240
            height: 320
            delegate: myDelegate
            model: testData
        }
    }
}