summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptDisconnect.1.qml
blob: 45c4f738bd1d59db9676d2dc0ae7b96f42a715e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);

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