summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-03-23 12:21:11 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-03-31 05:27:20 +0000
commitec82c463d3f83454130dccfa71988af13768c5eb (patch)
tree69f12acab48f04e45f4da0a30efaf9950d73a89f /examples/bluetooth/lowenergyscanner
parentade72484f36a5c92c381398569a7864ed4bf6ba7 (diff)
Don't remain on Service list page if the BTLE controller disconnected
When a disconnect happened, this change ensures a more consistent UI flow. Change-Id: I0faafd79ac82b701a35d43d43c04bf211d8cd803 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Services.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Services.qml b/examples/bluetooth/lowenergyscanner/assets/Services.qml
index a536152d..d593c7d5 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Services.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Services.qml
@@ -76,6 +76,10 @@ Rectangle {
else
info.visible = false;
}
+
+ onDisconnected: {
+ pageLoader.source = "main.qml"
+ }
}
ListView {