aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/equalsUndefined.qml
blob: 86a2568b21b2b344df10aa771d0804085ed54394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick

Item {
    function wait(timeout) {
        if (timeout === undefined)
            timeout = 5000

        var i = 0;
        while (i < timeout) {
            i += 50
        }

        return i
    }

    property var a: wait(10)
    property var b: wait()
}