diff options
Diffstat (limited to 'src/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml')
-rw-r--r-- | src/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml b/src/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml new file mode 100644 index 0000000..a61808b --- /dev/null +++ b/src/benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml @@ -0,0 +1,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: "qrc:///shared/" + root.names[index % 3]; + width: 20 + height: 20 + antialiasing: true + } +} + |