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

MyQmlObject { 
    property int test: 0

    id: root
    
    Script {
        function testFunction() {
            test++;
        }
    }

    Component.onCompleted: { 
        root.argumentSignal.connect(testFunction);
        root.argumentSignal.connect(testFunction);
    }
}