aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qml/script/data/signal_heavyIdAccess.qml
blob: 2f878bcc02e3de681f92bfdc65e93288e87e921d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import Qt.test 1.0

TestObject {
    id: obj
    property real inc: 3

    onMySignalWithArgs: {
        var a = 0;
        for (var i = 0; i < 10000; ++i)
            a += obj.inc;
        return a;
    }
}