summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-02-22 14:50:02 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-02-23 16:50:21 +0100
commit160e28b3039c9ac8f50ea1a7ae00468d7a19e702 (patch)
tree016bc35b084d89cdee64f23fbf3cf8269681f1d6 /examples/bluetooth/lowenergyscanner/assets
parent23cd59e7671cb7955b1b088518f8da25d956f35c (diff)
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>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Characteristics.qml4
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Services.qml4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml b/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml
index 4bfc2c0a..1f892061 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml
@@ -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"
}
}
diff --git a/examples/bluetooth/lowenergyscanner/assets/Services.qml b/examples/bluetooth/lowenergyscanner/assets/Services.qml
index 68d7d447..a86d9ffb 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Services.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Services.qml
@@ -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"
}
}