aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/auto/creation/quick.image/delegates_image_alpha.qml
blob: e9649f22b6df1ec60e177b8e135aa67abaa86e98 (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 ARGB PNG
// Compare with delegates_image_solid
CreationBenchmark {
    id: root;
    count: 50;
    staticCount: 2500;

    delegate: Image {
        x: QmlBench.getRandom() * (root.width - width)
        y: QmlBench.getRandom() * (root.height - height)
        source: "../../../../shared/alpha.png"
        width: 20
        height: 20
    }
}