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

Timer {
    interval: 1
    running: true

    function recurse(i) {
        var x = { t: [1, 2, 3, 4] }
        console.log(x.t[i]);
        if (i < 3)
            recurse(i + 1);
        else
            Qt.quit();
    }

    onTriggered: recurse(0)
}