From 8ff44943b28f5ebe37d13b1132c37b316cc91f9a Mon Sep 17 00:00:00 2001 From: Hendrik Lehmbruch <hlehmbruch@gmx.net> Date: Tue, 13 Sep 2016 16:11:35 +0200 Subject: [PATCH 05/21] elarun: Update date and time [ChangeLog][Themes] Update date and time in the "elarun" theme Closes: #665 --- data/themes/elarun/Main.qml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/data/themes/elarun/Main.qml b/data/themes/elarun/Main.qml index 174a3b8..37a97a0 100644 --- a/data/themes/elarun/Main.qml +++ b/data/themes/elarun/Main.qml @@ -200,13 +200,21 @@ Rectangle { } } + Timer { + id: time + interval: 100 + running: true + repeat: true + + onTriggered: { + dateTime.text = Qt.formatDateTime(new Date(), "dddd, dd MMMM yyyy HH:mm AP") + } + } + Text { - id: time_label + id: dateTime anchors.right: parent.right anchors.bottom: parent.bottom - - text: Qt.formatDateTime(new Date(), "dddd, dd MMMM yyyy HH:mm AP") - horizontalAlignment: Text.AlignRight color: "#0b678c" -- 2.10.2