diff options
author | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-07 09:14:08 +0200 |
---|---|---|
committer | Kari Hautamäki <kari.hautamaki@qt.io> | 2017-02-08 07:01:02 +0000 |
commit | 0ad8e201e428f237a5e25d63a70b28041653a3b8 (patch) | |
tree | f40847dddaeb69a3a4f4450b242422f813ed5d12 /tradeshow/iot-sensortag/resources/base/TopToolbar.qml | |
parent | 37ece74ea1eed1459806ec0c530ef872027ea1d3 (diff) |
iot-sensortag: Added initial version of CloudSettings dialog
A new dialog added for cloud settings.
Change-Id: I4064a9b1658237911e373aa32567d34f6bb2583d
Reviewed-by: Kari Hautamäki <kari.hautamaki@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/resources/base/TopToolbar.qml')
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/TopToolbar.qml | 23 |
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 } } |