diff options
Diffstat (limited to 'src/benchmarks/auto/creation/quick.image/delegates_image_solid.qml')
-rw-r--r-- | src/benchmarks/auto/creation/quick.image/delegates_image_solid.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/quick.image/delegates_image_solid.qml b/src/benchmarks/auto/creation/quick.image/delegates_image_solid.qml new file mode 100644 index 0000000..99ceba6 --- /dev/null +++ b/src/benchmarks/auto/creation/quick.image/delegates_image_solid.qml @@ -0,0 +1,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: QmlBench.getRandom() * (root.width - width) + y: QmlBench.getRandom() * (root.height - height) + source: "qrc:///shared/solid.png" + width: 20 + height: 20 + } +} |