aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml')
-rw-r--r--src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml b/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml
new file mode 100644
index 0000000..65cdd4f
--- /dev/null
+++ b/src/benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml
@@ -0,0 +1,24 @@
+import QtQuick 2.0
+import QmlBench 1.0
+
+// Tests access of color 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 color value: model.colorRole
+ }
+ }
+}
+