summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets/Services.qml
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-24 11:02:42 +0100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-11-24 16:09:18 +0100
commit73563f571e6dfd37a0e4cf90f4679d9901b9233c (patch)
tree13c99085039ccf323ba4a9a97750b3fbc400a0e3 /examples/bluetooth/lowenergyscanner/assets/Services.qml
parent77c756fdb33e66dcdccc513af9cc865a658f7e73 (diff)
Improve lowenergyscanner status reporting
Change-Id: If6fccce951c2f3c3787cde2fa593e65da26f4370 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets/Services.qml')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Services.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Services.qml b/examples/bluetooth/lowenergyscanner/assets/Services.qml
index a433d445..e3e05cac 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Services.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Services.qml
@@ -76,10 +76,6 @@ Rectangle {
else
info.visible = false;
}
-
- onDisconnected: {
- pageLoader.source = "main.qml"
- }
}
ListView {
@@ -137,10 +133,12 @@ Rectangle {
id: menu
anchors.bottom: parent.bottom
menuWidth: parent.width
- menuText: "Back"
+ menuText: device.update
menuHeight: (parent.height/6)
onButtonClick: {
device.disconnectFromDevice()
+ pageLoader.source = "main.qml"
+ device.update = "Search"
}
}
}