aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/threading/workerscript/workerscript.qml
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/workerscript/workerscript.qml
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/workerscript/workerscript.qml')
-rw-r--r--examples/quick/threading/workerscript/workerscript.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/threading/workerscript/workerscript.qml b/examples/quick/threading/workerscript/workerscript.qml
index 6c279d4a46..735cc8d1f1 100644
--- a/examples/quick/threading/workerscript/workerscript.qml
+++ b/examples/quick/threading/workerscript/workerscript.qml
@@ -56,7 +56,7 @@ Rectangle {
//! [1]
WorkerScript {
id: myWorker
- source: "workerscript.js"
+ source: "workerscript.mjs"
onMessage: {
if (messageObject.row == rowSpinner.value && messageObject.column == columnSpinner.value){ //Not an old result