blob: 2ede02583b8008d74c934df934b1cd9889b3df78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import QtQuick 2.0
import QmlBench 1.0
// Test the creation of an Image with an RGB PNG
// Compare with delegates_image_alpha
CreationBenchmark {
id: root;
count: 50;
staticCount: 2500;
delegate: Image {
x: Math.random() * (root.width - width)
y: Math.random() * (root.height - height)
source: "../../../../shared/solid.png"
width: 20
height: 20
}
}
|