diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-03-14 16:38:51 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-03-15 11:21:44 +0000 |
commit | 93e845e00b814d17fcee9fe0bd182639dc1a1753 (patch) | |
tree | f9e2bf29b892768ca5eae2d0a833b513cfb60d83 /benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml | |
parent | 0eebf8de18b0af61f2e04521d9190eed70f5bb55 (diff) |
Rearrange benchmarks
We now have a slightly better setup:
benchmarks/ (root)
auto/ (all benchmarks for regression testing purposes)
changes/ (old changes benchmarks, may be subject to further change)
creation/
... many subdirs, per module or per type in some cases
js/ (old js tests)
manual/ (useful tests that are probably not useful in an automated way)
gputhroughput/ (useful for HW evaluation)
This should let us explicitly run tests that we want to run in an
automated fashion (good), and provides us with a bit more organization
to allow for much more tests without looking like a disorganized mess.
No new tests as yet, but they will come...
Change-Id: I93d04fca84a7f0f10999691ebe0719c80265c852
Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml')
-rw-r--r-- | benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml b/benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml new file mode 100644 index 0000000..68626f2 --- /dev/null +++ b/benchmarks/auto/creation/controls/delegates_buttoncontrol2.qml @@ -0,0 +1,26 @@ +import QtQuick 2.0 +import QtQuick.Controls 2.0 + +Item { + id: root; + property int count: 20; + property int staticCount: 1000; + + property real t; + NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite } + onTChanged: { + repeater.model = 0; + repeater.model = root.count + } + + Component.onCompleted: repeater.model = root.count + + Repeater { + id: repeater + Button { + x: Math.random() * root.width - width + y: Math.random() * root.height - height + text: "Item #" + index; + } + } +} |