summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/gridview/dummydata/ContactModel.qml
blob: 3cf9ba764e5accd719fd8ecd73bb29b7fce8da46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Qt 4.6

ListModel {
    id: contactModel
    ListElement {
        name: "Bill Smith"
        number: "555 3264"
        portrait: "pics/portrait.png"
    }
    ListElement {
        name: "Jim Williams"
        number: "555 5673"
        portrait: "pics/portrait.png"
    }
    ListElement {
        name: "John Brown"
        number: "555 8426"
        portrait: "pics/portrait.png"
    }
    ListElement {
        name: "Sam Wise"
        number: "555 0473"
        portrait: "pics/portrait.png"
    }
}