aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-07-20 13:30:11 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-07-22 09:56:47 +0200
commitf865f4b76d9385077c9ba4ca91a91246554dd36e (patch)
tree40cae775fa3f116b09121427887114c30cd443aa /tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml
parent2baab6ba9aeafb15b4dadb16d707c45ebb1c2e14 (diff)
Restructure tests in preparation for merging into qtdeclarative
Task-number: QTBUG-95173 Change-Id: I541dc26cf2cdd6f2640824f693f7d059445367d9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml')
-rw-r--r--tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml
new file mode 100644
index 00000000..f13d65c5
--- /dev/null
+++ b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_dialogbuttonbox.qml
@@ -0,0 +1,14 @@
+import QtQuick
+import QmlBench
+import QtQuick.Controls
+
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 1000
+ delegate: DialogButtonBox {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
+ }
+}