aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-03-21 14:25:21 +0100
committerRobin Burchell <robin.burchell@crimson.no>2017-03-21 14:05:23 +0000
commitcd3fa66eee92c4a0bb58940a12a23a51e733d5dd (patch)
tree80407397c8692a3761c261d02189968d2b103485 /benchmarks
parent37790d986549cb3c3a9c6362764a2c462b50bc6b (diff)
Remove two composite "examples"
These aren't really benchmarks of anything concrete, so having them does not seem useful. Separate tests for e.g. width+height vs anchors bindings will be added instead. Change-Id: I6d5225d421529ade6c44e5c76e03b856ef2b4bd7 Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/auto/creation/examples/delegates_complex.qml44
-rw-r--r--benchmarks/auto/creation/examples/delegates_tworects.qml32
2 files changed, 0 insertions, 76 deletions
diff --git a/benchmarks/auto/creation/examples/delegates_complex.qml b/benchmarks/auto/creation/examples/delegates_complex.qml
deleted file mode 100644
index f78943a..0000000
--- a/benchmarks/auto/creation/examples/delegates_complex.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-import QtQuick 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
- Rectangle {
- x: Math.random() * root.width
- y: Math.random() * root.height
- width: 100
- height: 50
- gradient: Gradient {
- GradientStop { position: 0; color: "steelblue" }
- GradientStop { position: 1; color: "black" }
- }
- Repeater {
- model: 10
- Text {
- id: label
- x: (index % 2) * 50
- y: Math.floor(index / 2) * 10;
- width: 50
- height: 10
- horizontalAlignment: Text.AlignHCenter
- text: "Item #" + index
- color: "white"
- font.pixelSize: 10
- }
- }
- }
- }
-}
diff --git a/benchmarks/auto/creation/examples/delegates_tworects.qml b/benchmarks/auto/creation/examples/delegates_tworects.qml
deleted file mode 100644
index d171665..0000000
--- a/benchmarks/auto/creation/examples/delegates_tworects.qml
+++ /dev/null
@@ -1,32 +0,0 @@
-import QtQuick 2.0
-
-Item {
- id: root;
- property int count: 50;
- property int staticCount: 2500;
-
- 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
- Rectangle {
- x: Math.random() * (root.width - width)
- y: Math.random() * (root.height - height)
- width: 30
- height: 15
- color: "steelblue"
- Rectangle {
- anchors.margins: 5
- anchors.fill: parent
- color: "lime"
- }
- }
- }
-}