summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-09-01 13:46:59 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-09-02 13:58:14 +0200
commit6837d143b456eb1f253b68704a5ff1b48bef4de4 (patch)
tree55d900db5b034498f9690aa508696dfc8978d736 /examples/bluetooth/lowenergyscanner/assets/Dialog.qml
parentffbe7708f87aea5e7919e7ca1029bfa24ce13bcd (diff)
Add support for random vs public address selection to lowenergyscanner
Change-Id: I963f47f0089d072249b73bdfb0c715d43186b08d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets/Dialog.qml')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Dialog.qml22
1 files changed, 20 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Dialog.qml b/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
index be5388b5..2b8580f3 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Dialog.qml
@@ -41,21 +41,39 @@
import QtQuick 2.0
Rectangle {
- width: parent.width/2
+ width: parent.width/3*2
height: 62
z: 50
property string dialogText: ""
+ property bool busyImage: true
border.width: 1
border.color: "#363636"
radius: 10
Text {
+ id: dialogTextId
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
- anchors.fill: parent
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: parent.top;
+ anchors.topMargin: 10
+
elide: Text.ElideMiddle
text: dialogText
color: "#363636"
wrapMode: Text.Wrap
}
+
+ Image {
+ id: background
+
+ width:20
+ height:20
+ anchors.top: dialogTextId.bottom
+ anchors.horizontalCenter: dialogTextId.horizontalCenter
+ visible: parent.busyImage
+ source: "busy_dark.png"
+ fillMode: Image.PreserveAspectFit
+ NumberAnimation on rotation { duration: 3000; from:0; to: 360; loops: Animation.Infinite}
+ }
}