summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate-game/qml
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-02-22 12:00:42 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-02-22 17:59:52 +0100
commit53b7a6441cd310f461aee2c11f87446acae7027a (patch)
tree43f274de89e0acff09c1900c9eb252f53daef939 /examples/bluetooth/heartrate-game/qml
parenta62e4d7ec2835db0c358dc305403f6edf7163ffd (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.qml2
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