aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/threading/workerscript/workerscript.qml
diff options
context:
space:
mode:
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 735cc8d1f1..eb8ad43d01 100644
--- a/examples/quick/threading/workerscript/workerscript.qml
+++ b/examples/quick/threading/workerscript/workerscript.qml
@@ -58,7 +58,7 @@ Rectangle {
id: myWorker
source: "workerscript.mjs"
- onMessage: {
+ onMessage: (messageObject) => {
if (messageObject.row == rowSpinner.value && messageObject.column == columnSpinner.value){ //Not an old result
if (messageObject.result == -1)
resultText.text = "Column must be <= Row";