summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.4.qml
blob: 342f24aa2cff427ce4fc6227e0135ff98e5d7a02 (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++;
        }
        function otherFunction() {
        }
    }

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

    onBasicSignal: root.argumentSignal.disconnect(otherFunction);
}