Fix deprecation warnings in lowenergyscanner example

This patch fixes several warnings like
assets/Services.qml:81:5: QML Connections: Implicitly defined onFoo
properties in Connections are deprecated. Use this syntax instead:
function onFoo(<arguments>) { ... }

Change-Id: Ic4af8f2fc76e437f7b4113e691f2b2461b273bbb
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
Andreas Buhr 2021-02-22 14:50:02 +01:00
parent 23cd59e767
commit 160e28b303
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ Rectangle {
Connections {
target: device
onCharacteristicsUpdated: {
function onCharacteristicsUpdated() {
menu.menuText = "Back"
if (characteristicview.count === 0) {
info.dialogText = "No characteristic found"
@ -81,7 +81,7 @@ Rectangle {
}
}
onDisconnected: {
function onDisconnected() {
pageLoader.source = "main.qml"
}
}

View File

@ -80,14 +80,14 @@ Rectangle {
Connections {
target: device
onServicesUpdated: {
function onServicesUpdated() {
if (servicesview.count === 0)
info.dialogText = "No services found"
else
info.visible = false;
}
onDisconnected: {
function onDisconnected() {
pageLoader.source = "main.qml"
}
}