aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_tooltip.qml')
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tooltip.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml b/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
new file mode 100644
index 00000000..7efa4b24
--- /dev/null
+++ b/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.0
+import QmlBench 1.0
+import QtQuick.Controls 2.0
+
+CreationBenchmark {
+ id: root
+ count: 20
+ staticCount: 500
+ delegate: Item {
+ x: QmlBench.getRandom() * root.width - width
+ y: QmlBench.getRandom() * root.height - height
+ width: tooltip.width
+ height: tooltip.height
+ ToolTip {
+ id: tooltip
+ visible: true
+ text: "ToolTip"
+ }
+ }
+}