diff options
Diffstat (limited to 'src/benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml')
-rw-r--r-- | src/benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml b/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml new file mode 100644 index 0000000..5217816 --- /dev/null +++ b/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml @@ -0,0 +1,24 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests access of string 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 string value: model.stringRole + } + } +} + |