aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltablemodel/data/TestModel.qml
blob: 2b41837bacac0e249ff1adca1276c5a70569b8ff (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

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
        }
    ]
}