diff options
Diffstat (limited to 'tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_tabbar.qml')
-rw-r--r-- | tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_tabbar.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_tabbar.qml b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_tabbar.qml new file mode 100644 index 0000000000..37f6a46371 --- /dev/null +++ b/tests/benchmarks/quickcontrols2/qmlbench/creation/delegates_tabbar.qml @@ -0,0 +1,23 @@ +import QtQuick +import QmlBench +import QtQuick.Controls + +CreationBenchmark { + id: root + count: 20 + staticCount: 250 + delegate: TabBar { + x: QmlBench.getRandom() * root.width - width + y: QmlBench.getRandom() * root.height - height + currentIndex: index / root.staticCount * count + TabButton { + text: "Tab1" + } + TabButton { + text: "Tab2" + } + TabButton { + text: "Tab3" + } + } +} |