diff options
Diffstat (limited to 'tests/benchmarks/qml/librarymetrics_performance/data/expression.4.qml')
-rw-r--r-- | tests/benchmarks/qml/librarymetrics_performance/data/expression.4.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/benchmarks/qml/librarymetrics_performance/data/expression.4.qml b/tests/benchmarks/qml/librarymetrics_performance/data/expression.4.qml new file mode 100644 index 0000000000..bcfc381c79 --- /dev/null +++ b/tests/benchmarks/qml/librarymetrics_performance/data/expression.4.qml @@ -0,0 +1,19 @@ +import QtQuick 2.0 + +Item { + property int a: 5 + property int d: 12 + signal trigger(int b, int c) + + onAChanged: { + trigger(a*2, 15+a) + } + + function someFunc(b, c) { + d = b+c; + } + + Component.onCompleted: { + trigger.connect(someFunc); + } +} |