summaryrefslogtreecommitdiff
path: root/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_combobox.qml')
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_combobox.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_combobox.qml b/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
new file mode 100644
index 00000000..0cec266f
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 1.4
+
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 250
+ delegate: ComboBox {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ model: 5
+ currentIndex: index % count
+ }
+}