summaryrefslogtreecommitdiffstats
path: root/tradeshow/iot-sensortag/resources/base/TopToolbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tradeshow/iot-sensortag/resources/base/TopToolbar.qml')
-rw-r--r--tradeshow/iot-sensortag/resources/base/TopToolbar.qml23
1 files changed, 18 insertions, 5 deletions
diff --git a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml
index ce982c6..af6aba2 100644
--- a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml
+++ b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml
@@ -57,9 +57,15 @@ Item {
height: 100
width: implicitWidth
+ CloudSettings {
+ id: cloudSettins
+ x: cloudItem.x
+ y: parent.height
+ visible: false
+ }
+
SensorSettings {
id: sensorList
-
x: sensorItem.x
y: parent.height
visible: false
@@ -93,6 +99,11 @@ Item {
anchors.left: icon.right
anchors.margins: 8
}
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: cloudSettins.visible = !cloudSettins.visible
+ }
}
Item {
@@ -100,6 +111,8 @@ Item {
height: topToolbar.height
anchors.top: parent.top
anchors.left: cloudItem.right
+ width: sensorIcon.width + sensorButton.width + 3 * anchors.leftMargin
+
Image {
id: sensorIcon
@@ -126,11 +139,11 @@ Item {
anchors.verticalCenter: sensorIcon.verticalCenter
anchors.left: sensorIcon.right
anchors.margins: 8
+ }
- MouseArea {
- anchors.fill: parent
- onClicked: sensorList.visible = !sensorList.visible
- }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: sensorList.visible = !sensorList.visible
}
}