aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml
blob: e22aa8590852408edc302c074583f6152de5320d (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
import QtQuick 2.0
import QmlBench 1.0

// Test the creation of an antialiased image.
CreationBenchmark {
    id: root;
    count: 50;
    staticCount: 2500;

    property var names: [
        "butterfly-wide.png",
        "butterfly-half.png",
        "butterfly-collapsed.png"
    ];

    delegate: Image {
        x: QmlBench.getRandom() * (root.width - width)
        y: QmlBench.getRandom() * (root.height - height)
        source: "../../../../shared/" + root.names[index % 3];
        width: 20
        height: 20
        antialiasing: true
    }
}