diff options
author | Tamas Martinec <tamas.martinec@symbio.com> | 2021-02-24 10:36:34 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-24 09:23:04 +0000 |
commit | 57757a55742ad3168fb7ac41cf506d106c1a3e7c (patch) | |
tree | bbaa7bda5e724a8a28b4744f05c6117df4e72ebd /examples/scxml/mediaplayer-common | |
parent | face0d5508e26ebf4db3301038ae7c9d3408e11e (diff) |
QtScxml: Fix parameter injection into signal handlers deprecation warnings
Task-number: QTBUG-89834
Change-Id: I9e421abc841b944813d2233a67f4cc0ab104e9c0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 5e22a86a1c4b02f34c461f7f20f478ce8b0e88c6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/scxml/mediaplayer-common')
-rw-r--r-- | examples/scxml/mediaplayer-common/Mediaplayer.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scxml/mediaplayer-common/Mediaplayer.qml b/examples/scxml/mediaplayer-common/Mediaplayer.qml index 51d162d..fbfa766 100644 --- a/examples/scxml/mediaplayer-common/Mediaplayer.qml +++ b/examples/scxml/mediaplayer-common/Mediaplayer.qml @@ -118,7 +118,7 @@ Window { EventConnection { stateMachine: root.stateMachine events: ["playbackStarted", "playbackStopped"] - onOccurred: { + onOccurred: (event)=> { var media = event.data.media; if (event.name === "playbackStarted") { theText.text = "Playing '" + media + "'"; |