summaryrefslogtreecommitdiff
path: root/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_groupbox.qml')
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_groupbox.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml b/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
new file mode 100644
index 00000000..30514043
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
@@ -0,0 +1,18 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 1.4
+
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 1000
+ delegate: GroupBox {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ title: "GroupBox"
+ Item {
+ implicitWidth: 100
+ implicitHeight: 100
+ }
+ }
+}