summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2017-12-15 10:37:27 +0100
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2017-12-18 07:46:14 +0000
commitf2967d09e2d7ac3805e4a1370ba88a9715ff72c2 (patch)
treecdf56ff59832386639535177d0cc391eba9606af
parentaefe74b98d1079544cf5cd1334a6e849b03417c3 (diff)
iot-sensortag: Add an About tab
For the watch UI it is helpful to provide an About to visualize it is a Qt application. Change-Id: I83779c038dcaac12ca873b53f4d82d0e801233f2 Reviewed-by: Andrew O'Doherty <andrew.odoherty@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--tradeshow/iot-sensortag/resources/watch/MainWatch.qml48
-rw-r--r--tradeshow/iot-sensortag/resources/watch/images/BuiltWithQt.pngbin0 -> 22172 bytes
-rw-r--r--tradeshow/iot-sensortag/uiwatch.qrc1
3 files changed, 49 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/resources/watch/MainWatch.qml b/tradeshow/iot-sensortag/resources/watch/MainWatch.qml
index 5fd6153..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 {
diff --git a/tradeshow/iot-sensortag/resources/watch/images/BuiltWithQt.png b/tradeshow/iot-sensortag/resources/watch/images/BuiltWithQt.png
new file mode 100644
index 0000000..7e56de7
--- /dev/null
+++ b/tradeshow/iot-sensortag/resources/watch/images/BuiltWithQt.png
Binary files differ
diff --git a/tradeshow/iot-sensortag/uiwatch.qrc b/tradeshow/iot-sensortag/uiwatch.qrc
index 74093da..5167663 100644
--- a/tradeshow/iot-sensortag/uiwatch.qrc
+++ b/tradeshow/iot-sensortag/uiwatch.qrc
@@ -30,5 +30,6 @@
<file>resources/small/images/Gyro/gyro_ring2.png</file>
<file>resources/small/images/Gyro/gyro_ring3.png</file>
<file>resources/small/images/Gyro/gyro_outer.png</file>
+ <file>resources/watch/images/BuiltWithQt.png</file>
</qresource>
</RCC>