aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml')
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
new file mode 100644
index 00000000..8e8b616f
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
@@ -0,0 +1,16 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 2.0
+
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 1000
+ delegate: ScrollIndicator {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ height: 100
+ size: index / root.staticCount
+ active: true
+ }
+}