aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlprofilerservice/data/javascript.qml
blob: 0555d4965217c8d0b21ccdea8a65c5bed641f443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick 2.0

Rectangle {
    function something(i) {
        if (i > 10) {
            something(i / 4);
        } else {
            console.log("done");
        }
    }

    width: 400
    height: 400

    onWidthChanged: something(width);
    Component.onCompleted: width = 500;
}