add option to customize date format

This commit is contained in:
hat3ph
2024-04-17 11:04:45 +08:00
committed by GitHub
parent ac6b191237
commit 96e578bd51
3 changed files with 3 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ Rectangle {
id: date
anchors.horizontalCenter: parent.horizontalCenter
color: clock.color
text : Qt.formatDate(clock.dateTime, Qt.DefaultLocaleLongDate)
text : Qt.formatDate(clock.dateTime, config.dateFormat || "dddd, dd MMMM yyyy")
font.family: textFont.name
font.pointSize: config.dateFontSize
}