aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/threading/doc
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-08-20 14:35:40 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-21 06:33:35 +0000
commitec022d0efec47e0e68cdec1c2e018ce864cc015c (patch)
tree4e98ce197a8a2e54c00638770485457656c80684 /examples/quick/threading/doc
parent4b73fc5bd2fd3df10f1e7499c82da08fbd417055 (diff)
Port WorkerScript threading examples to use ES modules
This is the more modern way of doing things, so demonstrate that in our examples and documentation. Change-Id: Icd5316fbeeb00c34d470c8d871851945dc831244 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/quick/threading/doc')
-rw-r--r--examples/quick/threading/doc/src/threading.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/threading/doc/src/threading.qdoc b/examples/quick/threading/doc/src/threading.qdoc
index bbda638f07..f5e5139916 100644
--- a/examples/quick/threading/doc/src/threading.qdoc
+++ b/examples/quick/threading/doc/src/threading.qdoc
@@ -45,7 +45,7 @@
Inside the worker thread, the ListModel is synchronized once the data is
finished loading:
- \snippet threading/threadedlistmodel/dataloader.js 0
+ \snippet threading/threadedlistmodel/dataloader.mjs 0
\section1 WorkerScript
@@ -60,7 +60,7 @@
\snippet threading/workerscript/workerscript.qml 0
The workerscript then is free to take a really long time to calculate it:
- \snippet threading/workerscript/workerscript.js 0
+ \snippet threading/workerscript/workerscript.mjs 0
When it's done, the result returns to the main scene via the WorkerScript
type: