Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 25667ea3beb7fd9832975c8d5ecb1b60 > files > 5

sddm-0.14.0-13.2.mga6.src.rpm

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