diff options
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml')
-rw-r--r-- | tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml b/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml new file mode 100644 index 00000000..e676d144 --- /dev/null +++ b/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 +import QtQuick.Controls 2.1 + +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 + } +} |