diff options
author | Liang Qi <liang.qi@qt.io> | 2018-02-02 09:51:07 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-02-02 09:51:07 +0100 |
commit | 48bfc02e82cb4b666fb832ef0ace59af8a0c7ef2 (patch) | |
tree | a9f32828dac6139393353ddfd6176311f08e821c /tests/benchmarks/qmlbench/creation/delegates_scrollview.qml | |
parent | 698a8268f786d74726eb07255df2d26ac2269079 (diff) | |
parent | a843884697602891d21b9f9bc62603548dd6a6b8 (diff) | |
download | qtquickcontrols-48bfc02e82cb4b666fb832ef0ace59af8a0c7ef2.tar.gz |
Merge remote-tracking branch 'origin/5.9' into 5.10
Change-Id: I556a8404b908c15eaa71b009319c7f27274b40f1
Diffstat (limited to 'tests/benchmarks/qmlbench/creation/delegates_scrollview.qml')
-rw-r--r-- | tests/benchmarks/qmlbench/creation/delegates_scrollview.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml new file mode 100644 index 00000000..57d59667 --- /dev/null +++ b/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml @@ -0,0 +1,19 @@ +import QtQuick 2.0 +import QmlBench 1.0 +import QtQuick.Controls 1.4 + +CreationBenchmark { + id: root + count: 20 + staticCount: 250 + delegate: ScrollView { + x: QmlBench.getRandom() * root.width - width + y: QmlBench.getRandom() * root.height - height + width: 100 + height: 100 + Item { + implicitWidth: 200 + implicitHeight: 200 + } + } +} |