summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml
blob: fa90918d5e27017294cee622dee74d209bc31e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Qt.test 1.0
import Qt 4.6

MyQmlObject { 
    property bool test: false

    id: root
    
    Script {
        function testFunction() {
            if (this.b == 12)
                test = true;
        }
    }

    Component.onCompleted: {
        var a = new Object;
        a.b = 12;
        root.argumentSignal.connect(a, testFunction);
    }
}