summaryrefslogtreecommitdiff
path: root/examples/qtobject/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtobject/index.html')
-rw-r--r--examples/qtobject/index.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/qtobject/index.html b/examples/qtobject/index.html
index af2b940..4987116 100644
--- a/examples/qtobject/index.html
+++ b/examples/qtobject/index.html
@@ -1,7 +1,6 @@
<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 HELPER
function output(x) {
@@ -70,10 +69,8 @@
//BEGIN SETUP
var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
new QWebChannel(baseUrl, function(channel) {
- setupQObjectWebChannel(channel, function() {
- // do stuff with registered QObjects
- addObject(initialTestObject);
- });
+ // do stuff with registered QObjects
+ addObject(initialTestObject);
});
//END SETUP
</script>