diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-20 13:30:11 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-22 09:56:47 +0200 |
commit | f865f4b76d9385077c9ba4ca91a91246554dd36e (patch) | |
tree | 40cae775fa3f116b09121427887114c30cd443aa /tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_checkbox.qml | |
parent | 2baab6ba9aeafb15b4dadb16d707c45ebb1c2e14 (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_checkbox.qml')
-rw-r--r-- | tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_checkbox.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_checkbox.qml b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_checkbox.qml new file mode 100644 index 00000000..67d9e382 --- /dev/null +++ b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_checkbox.qml @@ -0,0 +1,15 @@ +import QtQuick +import QmlBench +import QtQuick.Controls + +CreationBenchmark { + id: root + count: 20 + staticCount: 1000 + delegate: CheckBox { + x: QmlBench.getRandom() * root.width - width + y: QmlBench.getRandom() * root.height - height + text: "CheckBox" + checked: index % 2 + } +} |