diff --git a/user/Bar.qml b/user/Bar.qml index df22bfa..6246683 100644 --- a/user/Bar.qml +++ b/user/Bar.qml @@ -16,6 +16,7 @@ Scope { } implicitHeight: 30 + ClockWidget { anchors.centerIn: parent diff --git a/user/ClockWidget.qml b/user/ClockWidget.qml index da612bb..b80c281 100644 --- a/user/ClockWidget.qml +++ b/user/ClockWidget.qml @@ -1,5 +1,5 @@ import QtQuick Text { - Time.time -} \ No newline at end of file + text: Time.time +} diff --git a/user/Time.qml b/user/Time.qml index 75c1e8f..ba20ab8 100644 --- a/user/Time.qml +++ b/user/Time.qml @@ -5,15 +5,13 @@ import QtQuick Singleton { id: root - Singleton { - id: root readonly property string time: { - Qt.formatDateTime(clock.date, "hh:mm:ss ddd dd.MM.yyyy") + Qt.formatDateTime(clock.date, "dd.MM.yyyy hh:mm:ss") } SystemClock { id: clock precision: SystemClock.Seconds } - } -} \ No newline at end of file + } +