summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-21 07:21:00 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-21 07:21:00 (GMT)
commitf1c883a98b8afd084522505f84c512eabe61f7f5 (patch)
treed531b5095a4ba28b656c1bc90c8e30ecfc4d28cd /examples
parent6abe7f1ef6021a1174d88d1a2811c58241a96707 (diff)
downloadQt-f1c883a98b8afd084522505f84c512eabe61f7f5.zip
Qt-f1c883a98b8afd084522505f84c512eabe61f7f5.tar.gz
Qt-f1c883a98b8afd084522505f84c512eabe61f7f5.tar.bz2
remove debugs
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/listmodel-threaded/dataloader.js5
-rw-r--r--examples/declarative/listmodel-threaded/timedisplay.qml3
2 files changed, 0 insertions, 8 deletions
diff --git a/examples/declarative/listmodel-threaded/dataloader.js b/examples/declarative/listmodel-threaded/dataloader.js
index eac7478..d720f09 100644
--- a/examples/declarative/listmodel-threaded/dataloader.js
+++ b/examples/declarative/listmodel-threaded/dataloader.js
@@ -1,14 +1,9 @@
// ![0]
WorkerScript.onMessage = function(msg) {
- console.log("Worker told to", msg.action);
-
if (msg.action == 'appendCurrentTime') {
var data = {'time': new Date().toTimeString()};
msg.model.append(data);
msg.model.sync(); // updates the changes to the list
-
- var msgToSend = {'msg': 'Model updated!'};
- WorkerScript.sendMessage(msgToSend);
}
}
// ![0]
diff --git a/examples/declarative/listmodel-threaded/timedisplay.qml b/examples/declarative/listmodel-threaded/timedisplay.qml
index 80ac9fa..bad7010 100644
--- a/examples/declarative/listmodel-threaded/timedisplay.qml
+++ b/examples/declarative/listmodel-threaded/timedisplay.qml
@@ -15,9 +15,6 @@ ListView {
WorkerScript {
id: worker
source: "dataloader.js"
- onMessage: {
- console.log("Worker said", messageObject.msg);
- }
}
Timer {