diff options
Diffstat (limited to 'src/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml')
-rw-r--r-- | src/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml b/src/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml new file mode 100644 index 0000000..4b2a863 --- /dev/null +++ b/src/benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of the JS variant type as a property. +CreationBenchmark { + id: root; + count: 50 + staticCount: 2500 + delegate: Item { + property variant value: { 42: true } + } +} + + |