aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/dynamicview/dynamicview1/PetsModel.qml
blob: 0ebbb1d12ec7023f0b9600ba5c176c83bf4c434e (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//![0]
import QtQuick

ListModel {
    ListElement {
        name: qsTr("Polly")
        type: qsTr("Parrot")
        age: 12
        size: qsTr("Small")
    }
    ListElement {
        name: qsTr("Penny")
        type: qsTr("Turtle")
        age: 4
        size: qsTr("Small")
    }
//![0]
    ListElement {
        name: qsTr("Warren")
        type: qsTr("Rabbit")
        age: 2
        size: qsTr("Small")
    }
    ListElement {
        name: qsTr("Spot")
        type: qsTr("Dog")
        age: 9
        size: qsTr("Medium")
    }
    ListElement {
        name: qsTr("Schrödinger")
        type: qsTr("Cat")
        age: 2
        size: qsTr("Medium")
    }
    ListElement {
        name: qsTr("Joey")
        type: qsTr("Kangaroo")
        age: 1
        size: qsTr("Medium")
    }
    ListElement {
        name: qsTr("Kimba")
        type: qsTr("Bunny")
        age: 65
        size: qsTr("Large")
    }
    ListElement {
        name: qsTr("Rover")
        type: qsTr("Dog")
        age: 5
        size: qsTr("Large")
    }
    ListElement {
        name: qsTr("Tiny")
        type: qsTr("Elephant")
        age: 15
        size: qsTr("Large")
    }
//![1]
}
//![1]