summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets/main.qml
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2014-02-26 12:09:23 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-27 14:56:08 +0100
commiteb632012c2cf13922b08f4e2606d1452da9aaacb (patch)
tree78433495f7811e6f89054afe38b125a4e96c671b /examples/bluetooth/lowenergyscanner/assets/main.qml
parent6de4ff7b44d32d2f0fea277d856ce4d3fe321c7e (diff)
Lowenergyscanner example improved
Error handling improved, code styling improved. Change-Id: I1f35c6a6ef9641cb445fdbe55e0127b554e50ebc Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets/main.qml')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/main.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/main.qml b/examples/bluetooth/lowenergyscanner/assets/main.qml
index 3c4e27ea..cdef49a5 100644
--- a/examples/bluetooth/lowenergyscanner/assets/main.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/main.qml
@@ -44,6 +44,11 @@ Rectangle {
id: back
width: 300
height: 600
+ property string message: device.update
+ onMessageChanged: {
+ if (device.update != "Scanning for devices..." && device.update != "Search")
+ info.visible = false;
+ }
Header {
id: header