diff options
Diffstat (limited to 'benchmarks/auto/changes/changing_over_isolated.qml')
-rw-r--r-- | benchmarks/auto/changes/changing_over_isolated.qml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/benchmarks/auto/changes/changing_over_isolated.qml b/benchmarks/auto/changes/changing_over_isolated.qml new file mode 100644 index 0000000..ab18ecb --- /dev/null +++ b/benchmarks/auto/changes/changing_over_isolated.qml @@ -0,0 +1,44 @@ +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 + 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; + } + } + +} |