diff options
Diffstat (limited to 'src/benchmarks/auto/creation/quick.validators')
3 files changed, 48 insertions, 0 deletions
diff --git a/src/benchmarks/auto/creation/quick.validators/delegates_doublevalidator.qml b/src/benchmarks/auto/creation/quick.validators/delegates_doublevalidator.qml new file mode 100644 index 0000000..4fb6f30 --- /dev/null +++ b/src/benchmarks/auto/creation/quick.validators/delegates_doublevalidator.qml @@ -0,0 +1,17 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of DoubleValidator +CreationBenchmark { + id: root; + count: 50; + staticCount: 2500; + delegate: Item { + property DoubleValidator validator: DoubleValidator { + top: 100 + bottom: 0 + decimals: 2 + } + } +} + diff --git a/src/benchmarks/auto/creation/quick.validators/delegates_intvalidator.qml b/src/benchmarks/auto/creation/quick.validators/delegates_intvalidator.qml new file mode 100644 index 0000000..f99040b --- /dev/null +++ b/src/benchmarks/auto/creation/quick.validators/delegates_intvalidator.qml @@ -0,0 +1,16 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of IntValidator +CreationBenchmark { + id: root; + count: 50; + staticCount: 2500; + delegate: Item { + property IntValidator validator: IntValidator { + top: 100 + bottom: 0 + } + } +} + diff --git a/src/benchmarks/auto/creation/quick.validators/delegates_regexpvalidator.qml b/src/benchmarks/auto/creation/quick.validators/delegates_regexpvalidator.qml new file mode 100644 index 0000000..b3b8d38 --- /dev/null +++ b/src/benchmarks/auto/creation/quick.validators/delegates_regexpvalidator.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 +import QmlBench 1.0 + +// Tests the creation of RegExpValidator +CreationBenchmark { + id: root; + count: 50; + staticCount: 2500; + delegate: Item { + property RegExpValidator validator: RegExpValidator { + regExp: /.*/ + } + } +} + |