From 90e26ea85564f22458dbec138e91e8078371f8b2 Mon Sep 17 00:00:00 2001 From: Titta Heikkala Date: Thu, 16 Feb 2017 09:21:28 +0200 Subject: iot-sensortag: Update the time Add a timer to update the time. Change-Id: I1ec817c15f4609c6c362481d2c5276b2dc167cca Reviewed-by: Maurice Kalinowski --- tradeshow/iot-sensortag/resources/base/TopToolbar.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tradeshow/iot-sensortag/resources') diff --git a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml index 85dcb69..eb94cb2 100644 --- a/tradeshow/iot-sensortag/resources/base/TopToolbar.qml +++ b/tradeshow/iot-sensortag/resources/base/TopToolbar.qml @@ -171,6 +171,13 @@ Item { anchors.bottom: parent.bottom } + Timer { + interval: 60000 // Update time once a minute + running: true + repeat: true + onTriggered: timeLabel.text = Qt.formatTime(new Date, "HH:mm") + } + Text { text: "UTC/GMT" color: "white" -- cgit v1.2.3