aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml')
-rw-r--r--benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml46
1 files changed, 46 insertions, 0 deletions
diff --git a/benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml b/benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml
new file mode 100644
index 0000000..7c2d085
--- /dev/null
+++ b/benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml
@@ -0,0 +1,46 @@
+import QtQuick 2.0
+
+Item {
+ id: root;
+ property int count: 1000;
+ property int staticCount: 2000
+
+ property real t;
+ NumberAnimation on t { from: 0; to: 1; duration: 2347; loops: Animation.Infinite }
+
+ Item {
+ anchors.fill: parent
+ clip: true
+ Repeater {
+ id: repeater
+ model: root.count
+
+ Rectangle {
+ color: Qt.hsla(Math.random(), 0.9, 0.4)
+ width: 20
+ height: 20
+ clip: true
+ rotation: 10
+ x: Math.random() * root.width
+ y: Math.random() * root.height
+
+ Text {
+ color: "white"
+ text: "X"
+ anchors.centerIn: parent
+ font.pixelSize: 10
+ }
+ }
+ }
+ }
+
+ Item {
+ anchors.fill: parent
+ clip: true
+ Text {
+ anchors.centerIn: parent
+ text: "test: " + root.t;
+ }
+ }
+
+}