aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_jsvalue.qml
blob: 8e5d0fc7d64c87fdfc210c62cc62c2f3954fac12 (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
import QtQuick 2.0
import QmlBench 1.0

// Tests access of jsvalue properties from a C++ model
Benchmark {
    id: root;
    count: 50
    staticCount: 2500

    onTChanged: {
        testModel.rowNumber = 0
        testModel.rowNumber = root.count
    }

    Repeater {
        model: TestModel {
            id: testModel
        }
        delegate: Item {
            property var value: model.jsValueRole
        }
    }
}