mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
simple "clock"
Plasma Quick currently lacks a way to load a plasmoid. yep.
This commit is contained in:
parent
09a6ff73c6
commit
c22bb7cc33
1 changed files with 17 additions and 0 deletions
|
|
@ -164,6 +164,23 @@ Item {
|
|||
z: 1
|
||||
height: units.iconSizes.small
|
||||
color: "black"
|
||||
|
||||
PlasmaCore.DataSource {
|
||||
id: timeSource
|
||||
engine: "time"
|
||||
connectedSources: ["Local"]
|
||||
interval: 500
|
||||
}
|
||||
|
||||
Text {
|
||||
id: clock
|
||||
anchors.fill: parent
|
||||
text: Qt.formatDateTime(timeSource.data.Local.DateTime)
|
||||
color: "white"
|
||||
horizontalAlignment: Qt.AlignHCenter
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
font.pixelSize: height / 2
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
|
|
|
|||
Loading…
Reference in a new issue