summaryrefslogtreecommitdiffstats
path: root/src/settingsui/bluetooth/Bluetooth.qml
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-05-11 11:12:51 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-05-12 13:35:47 +0300
commit14c45cb97c17f59b6503f8bb78f0b74de1252aa4 (patch)
treec06d956bf1284c7cb0e25562e5252adb8fd3d878 /src/settingsui/bluetooth/Bluetooth.qml
parentd09c937f3a390732cb96ff9764cc88c93921ae90 (diff)
Use function syntax for Connection
Implicitly defined onFoo properties in Connections are deprecated. Change-Id: I973a363437df27e0d7ad12e08991b211d62357dd Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'src/settingsui/bluetooth/Bluetooth.qml')
-rw-r--r--src/settingsui/bluetooth/Bluetooth.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settingsui/bluetooth/Bluetooth.qml b/src/settingsui/bluetooth/Bluetooth.qml
index 4c82904..d4cec78 100644
--- a/src/settingsui/bluetooth/Bluetooth.qml
+++ b/src/settingsui/bluetooth/Bluetooth.qml
@@ -91,7 +91,7 @@ Item {
Connections {
target: BtDevice
- onPoweredChanged: {
+ function onPoweredChanged() {
if (BtDevice.powered)
BtDevice.scanning = true
}