diff options
Diffstat (limited to 'benchmarks/auto/changes/changing_over_isolated_with_clip.qml')
-rw-r--r-- | benchmarks/auto/changes/changing_over_isolated_with_clip.qml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/benchmarks/auto/changes/changing_over_isolated_with_clip.qml b/benchmarks/auto/changes/changing_over_isolated_with_clip.qml new file mode 100644 index 0000000..cb7a45e --- /dev/null +++ b/benchmarks/auto/changes/changing_over_isolated_with_clip.qml @@ -0,0 +1,45 @@ +import QtQuick 2.0 + +Item { + id: root; + property int count: 100; + 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 + x: Math.random() * root.width + y: Math.random() * root.height + clip: true + + 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; + } + } + +} |