summaryrefslogtreecommitdiff
path: root/tests/qml/data/disconnect.html
blob: a9a479c8f49fa1114a5796ab9c43025d4e6daa52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
    <head>
        <script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script>
        <script type="text/javascript" src="testsetup.js"></script>
        <script type="text/javascript">
            //BEGIN SETUP
            createWebChannel(function(channel) {
                myObj.mySignal.connect(function(arg) {
                    channel.exec({label: "mySignalReceived", args: [arg]});
                    myObj.mySignal.disconnect(this);
                });
                channel.subscribe("report", function() {
                    channel.exec({label: "report"});
                });
            });
            //END SETUP
        </script>
    </head>
    <body>
    </body>
</html>