simple "clock"

Plasma Quick currently lacks a way to load a plasmoid. yep.
This commit is contained in:
Aaron Seigo 2014-09-29 20:20:00 +02:00
parent 09a6ff73c6
commit c22bb7cc33

View file

@ -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 {