aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltablemodel/data/TestModel.qml
blob: a862af35d23017156f192f2034929ec7ffcb7062 (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
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import Qt.labs.qmlmodels 1.0

import "TestUtils.js" as TestUtils

TableModel {
    id: testModel
    objectName: "testModel"

    TableModelColumn { display: "name" }
    TableModelColumn { display: "age" }

    rows: [
        {
            name: "John",
            age: 22
        },
        {
            name: "Oliver",
            age: 33
        }
    ]
}