aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/signalArguments.2.qml
blob: 8ecb8df6eebe6e16c597d6d29ee28663078d8244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt.test 1.0

MyQmlObject {
    property int argumentCount: -1
    property bool calleeCorrect: false

    onArgumentSignal: {
        argumentCount = arguments.length
        calleeCorrect = (arguments.callee === onArgumentSignal)
        setString('pass ' + arguments[0] + ' ' + arguments[1] + ' '
                          + arguments[2] + ' ' + arguments[3] + ' '
                          + arguments[4])
    }
}