blob: 931575251fe37773d95f442e72cb54d67a46460c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import QtQuick 2.2
import QmlBench 1.0
Benchmark {
id: root;
count: 500
staticCount: 20000
Repeater {
model: root.count
Image {
source: "../../../../shared/butterfly-wide.png"
x: Math.random() * (root.width - width)
y: Math.random() * (root.height - height)
width: 40
height: 40
property real t;
rotation: 10 * Math.sin(t * Math.PI * 2 + Math.PI);
SequentialAnimation on t {
NumberAnimation { from: 0; to: 1; duration: 1000; }
loops: Animation.Infinite
}
}
}
}
|