summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.2.qml
blob: 05ca7a47a6e3345e015f801bbfbb4ff6661f46a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt.test 1.0
import Qt 4.7
import "scriptDisconnect.1.js" as Script

MyQmlObject { 
    property int test: 0

    id: root
    
    Component.onCompleted: root.argumentSignal.connect(root, Script.testFunction);

    onBasicSignal: root.argumentSignal.disconnect(root, Script.testFunction);
}