diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-04-23 14:39:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 04:53:08 +0200 |
commit | a5336a0577b715edf49bef3794c6b1a8fa225a73 (patch) | |
tree | a7cc3ad59d7af572e1582aa9f8eb9546697a7e6c /examples/quick/threading/workerscript/workerscript.js | |
parent | 5e62f313588dc81c7284c4eb451cb9ebe7f3c994 (diff) |
More example docs
MouseArea, Threading and TouchInteraction
Change-Id: I9ca812d20a6c87d68ef91066ae0a4b9bc8829478
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'examples/quick/threading/workerscript/workerscript.js')
-rw-r--r-- | examples/quick/threading/workerscript/workerscript.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/threading/workerscript/workerscript.js b/examples/quick/threading/workerscript/workerscript.js index ada3d82589..67fbd8af9a 100644 --- a/examples/quick/threading/workerscript/workerscript.js +++ b/examples/quick/threading/workerscript/workerscript.js @@ -12,7 +12,7 @@ function triangle(row, column) { return 1; return triangle(row-1, column-1) + triangle(row-1, column); } - +//! [0] WorkerScript.onMessage = function(message) { //Calculate result (may take a while, using a naive algorithm) var calculatedResult = triangle(message.row, message.column); @@ -21,4 +21,4 @@ WorkerScript.onMessage = function(message) { column: message.column, result: calculatedResult} ); } - +//! [0] |