aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_tabbar.qml')
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tabbar.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml b/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
new file mode 100644
index 00000000..d3243d82
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
@@ -0,0 +1,23 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 2.0
+
+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"
+ }
+ }
+}