diff options
Diffstat (limited to 'tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_popup.qml')
-rw-r--r-- | tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_popup.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_popup.qml b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_popup.qml new file mode 100644 index 00000000..c2cdaab5 --- /dev/null +++ b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_popup.qml @@ -0,0 +1,26 @@ +import QtQuick +import QmlBench +import QtQuick.Controls + +CreationBenchmark { + id: root + count: 20 + staticCount: 500 + delegate: Item { + x: QmlBench.getRandom() * root.width - width + y: QmlBench.getRandom() * root.height - height + width: popup.width + height: popup.height + Popup { + id: popup + visible: true + modal: (index % 100) === 0 + width: parent.width + height: parent.height + Item { + implicitWidth: 100 + implicitHeight: 100 + } + } + } +} |