summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Dialog.qml5
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Header.qml6
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Label.qml1
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Menu.qml6
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/main.qml5
5 files changed, 19 insertions, 4 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Dialog.qml b/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
index 002055f4..f374d762 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
@@ -50,7 +50,10 @@ Rectangle {
radius: 10
Text {
- anchors.centerIn: parent
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ anchors.fill: parent
+ elide: Text.ElideMiddle
text: dialogText
color: "#363636"
}
diff --git a/examples/bluetooth/lowenergyscanner/assets/Header.qml b/examples/bluetooth/lowenergyscanner/assets/Header.qml
index c33a0692..654fda34 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Header.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Header.qml
@@ -45,13 +45,17 @@ Rectangle {
height: 70
border.width: 1
border.color: "#363636"
+ radius: 5
property string headerText: ""
Text {
- anchors.centerIn: parent
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ anchors.fill: parent
text: headerText
font.bold: true
font.pixelSize: 30
+ elide: Text.ElideMiddle
color: "#363636"
}
}
diff --git a/examples/bluetooth/lowenergyscanner/assets/Label.qml b/examples/bluetooth/lowenergyscanner/assets/Label.qml
index e22bca26..7576ffb7 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Label.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Label.qml
@@ -45,5 +45,6 @@ Text {
font.pixelSize: 30
anchors.horizontalCenter: parent.horizontalCenter
color: "#363636"
+ elide: Text.ElideMiddle
text: textContent
}
diff --git a/examples/bluetooth/lowenergyscanner/assets/Menu.qml b/examples/bluetooth/lowenergyscanner/assets/Menu.qml
index ee608664..796c27be 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Menu.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Menu.qml
@@ -60,8 +60,11 @@ Rectangle {
radius: 10
Text {
id: searchText
- anchors.centerIn: parent
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ anchors.fill: parent
text: menuText
+ elide: Text.ElideMiddle
color: "#E3E3E3"
}
@@ -78,7 +81,6 @@ Rectangle {
}
onClicked: {
- ColorAnimation: { to: "#4D4C4C"; duration: 200 }
buttonClick()
}
}
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