diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-22 12:00:42 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-22 17:59:52 +0100 |
commit | 53b7a6441cd310f461aee2c11f87446acae7027a (patch) | |
tree | 43f274de89e0acff09c1900c9eb252f53daef939 /examples/bluetooth/heartrate-game/qml | |
parent | a62e4d7ec2835db0c358dc305403f6edf7163ffd (diff) |
Fix deprecation warning in heartrate-game example
This patches fixes the deprecation warning
qrc:/qml/main.qml:82:5: QML Connections: Implicitly defined onFoo
properties in Connections are deprecated. Use this syntax instead:
function onFoo(<arguments>) { ... }
Change-Id: Id7f895ba052b7a98ded434fd99f601466dbf790e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game/qml')
-rw-r--r-- | examples/bluetooth/heartrate-game/qml/main.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate-game/qml/main.qml b/examples/bluetooth/heartrate-game/qml/main.qml index 0dfeef44..7476aab5 100644 --- a/examples/bluetooth/heartrate-game/qml/main.qml +++ b/examples/bluetooth/heartrate-game/qml/main.qml @@ -81,7 +81,7 @@ Window { Connections { target: splashLoader.item - onReadyToGo: { + function onReadyToGo() { appLoader.visible = true appLoader.item.init() splashLoader.visible = false |