From 514c3404213629814387949f277889c72bb3283f Mon Sep 17 00:00:00 2001 From: Andrew O'Doherty Date: Wed, 1 Nov 2017 13:25:47 +0100 Subject: iot-sensortag: Adapt demo to the screen size of a smartwatch mainSmall.qml requires a SwipeView since the smartwatch screen is too small too display all the charts. The charts have been scaled to smaller size and some alignment adjustments have been made Change-Id: I229b6150135c8a1a65bc8114f430904a15397b1e Reviewed-by: Maurice Kalinowski --- tradeshow/iot-sensortag/resources/base/TopToolbar.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tradeshow/iot-sensortag/resources/base/TopToolbar.qml') diff --git a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml index 69722b7..3c92c05 100644 --- a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml +++ b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml @@ -57,6 +57,9 @@ Item { height: 100 width: implicitWidth + property alias topbar: topbar + property alias date: dateLabel + SensorSettings { id: sensorList @@ -130,6 +133,7 @@ Item { } Text { + id: dateLabel property bool showAddress : false text: showAddress ? mainWindow.addresses : Qt.formatDateTime(new Date, "dddd, MMMM d, yyyy") color: "white" @@ -168,6 +172,7 @@ Item { } Text { + id: utcGmt text: "UTC/GMT" color: "white" anchors.left: timeLabel.right @@ -187,6 +192,7 @@ Item { } Image { + id: topbar anchors.bottom: parent.bottom anchors.bottomMargin: -18 source: pathPrefix + "Toolbar/topbar_all.png" -- cgit v1.2.3