diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-02-12 10:43:05 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-02-12 10:46:51 +0200 |
commit | 55df38263ee7902eff15ab452fa8bc222fcf07b3 (patch) | |
tree | a4ee5425e2dbc870ac4ce72e8435a4e39f6e3dca /tradeshow/iot-sensortag/resources/watch/MainWatch.qml | |
parent | a028e8328056979f09e3dd35ded54890dbef1fd9 (diff) | |
parent | f8bbf6dd890c1d111bda52bf83e8c6c90213844e (diff) |
Merge remote-tracking branch 'origin/5.10' into dev
* origin/5.10:
Doc: Bump version to 5.10.1
iot-sensortag: Add an About tab
iot-sensortag: Fix build against 5.10.0
iot-sensortag: Create a quit button SmartWatch demo
Change-Id: I247db054b05cb481c67b08cd42fb762f5539460c
Diffstat (limited to 'tradeshow/iot-sensortag/resources/watch/MainWatch.qml')
-rw-r--r-- | tradeshow/iot-sensortag/resources/watch/MainWatch.qml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/resources/watch/MainWatch.qml b/tradeshow/iot-sensortag/resources/watch/MainWatch.qml index 801c38b..5a500a2 100644 --- a/tradeshow/iot-sensortag/resources/watch/MainWatch.qml +++ b/tradeshow/iot-sensortag/resources/watch/MainWatch.qml @@ -226,6 +226,54 @@ Item { title: "" } } + + Item { + Text { + text: qsTr("About") + anchors.fill: parent + color: "white" + font.pixelSize: titleFontSize + } + + Rectangle { + id: aboutView + width: swipePane.width + height: swipePane.height + color: "transparent" + + ColumnLayout { + id: aboutLayout + width: parent.width * 0.8 + height: parent.width * 0.8 + anchors.centerIn: parent + + Image { + source: "images/BuiltWithQt.png" + fillMode: Image.PreserveAspectFit + width: parent.width + Layout.maximumWidth: parent.width - 20 + Layout.maximumHeight: 100 + anchors.horizontalCenter: parent.horizontalCenter + } + + Text { + id: qtLinkLabel + color: "white" + text: "Visit us at http://qt.io" + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Style.indicatorTitleSize + } + + Text { + color: "white" + text: "qt.io/demos/IoTScale" + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Style.indicatorTitleSize + } + } + } + } + } TopToolbar { @@ -236,5 +284,18 @@ Item { height: 48 topbar.visible: false date.visible: false + Image { + id: quit + source: "images/Toolbar/exit_button.png" + fillMode: Image.PreserveAspectFit + anchors.top: parent.top + anchors.right: parent.right + anchors.margins: 5 + scale: 0.7 + MouseArea { + anchors.fill: parent + onClicked: Qt.quit() + } + } } } |