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

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