aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qml/librarymetrics_performance/data/item.21.qml
blob: 4a423fd1fdb65b2fe1f83fa1c0e4717d94a767d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

Item {
    id: root
    objectName: "root"
    function generate() {
        var f = null;
        if (root.objectName == "root") {
            f = function(param) { return 42 - param; }
        } else {
            f = function(param) { return 9000 * param; }
        }
        return f;
    }

    property int b: 50
    property var a: b + generate()()
}