X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=qml%2Fqwp%2Fdataloader.js;fp=qml%2Fqwp%2Fdataloader.js;h=c26e2864363fa7e35aed65b2f254296b790bbc3b;hb=35062d3928ada7bfcb8f08201897545f91b7731b;hp=0000000000000000000000000000000000000000;hpb=d7b563a1a6f5a9388c4a1f99ffd1099a97796dae;p=qwp diff --git a/qml/qwp/dataloader.js b/qml/qwp/dataloader.js new file mode 100644 index 0000000..c26e286 --- /dev/null +++ b/qml/qwp/dataloader.js @@ -0,0 +1,9 @@ +// ![0] +WorkerScript.onMessage = function(msg) { + if (msg.action == 'appendCurrentTime') { + var data = {'time': new Date().toTimeString()}; + msg.model.reload(); //append(data); + //msg.model.sync(); // updates the changes to the list + } +} +// ![0]