diff options
Diffstat (limited to 'tests/qml/data/grouping.html')
-rw-r--r-- | tests/qml/data/grouping.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/qml/data/grouping.html b/tests/qml/data/grouping.html index bb804f4..2a6c158 100644 --- a/tests/qml/data/grouping.html +++ b/tests/qml/data/grouping.html @@ -1,15 +1,12 @@ <html> <head> - <script type="text/javascript" src="qrc:///qwebchannel/webchannel.js"></script> - <script type="text/javascript" src="qrc:///qwebchannel/qobject.js"></script> + <script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script> <script type="text/javascript"> //BEGIN SETUP var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]); window.channel = new QWebChannel(baseUrl, function(channel) { - setupQObjectWebChannel(channel, function() { - channel.subscribe("Qt.propertyUpdate", function() { - channel.exec({label: "gotPropertyUpdate", values: [myObj.myProperty(), myOtherObj.foo(), myOtherObj.bar()]}); - }); + channel.subscribe("Qt.propertyUpdate", function() { + channel.exec({label: "gotPropertyUpdate", values: [myObj.myProperty(), myOtherObj.foo(), myOtherObj.bar()]}); }); }); //END SETUP |