summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_451.qml
blob: fea810818b63613d181bdb7614ffb6a0a1b341c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Qt 4.7

Rectangle {
    id: page

    function simpleFunction() {
        python.called = "simpleFunction"
    }

    function oneArgFunction(x) {
        python.called = "oneArgFunction"
        python.arg1 = x
    }

    function twoArgFunction(x, y) {
        python.called = "twoArgFunction"
        python.arg1 = x
        python.arg2 = y
    }

    function returnFunction() {
        python.called = "returnFunction"
        return 42
    }

}