diff --git a/applets/digital-clock/package/contents/ui/configAppearance.qml b/applets/digital-clock/package/contents/ui/configAppearance.qml --- a/applets/digital-clock/package/contents/ui/configAppearance.qml +++ b/applets/digital-clock/package/contents/ui/configAppearance.qml @@ -45,7 +45,7 @@ property alias cfg_showDate: showDate.checked property string cfg_dateFormat: "shortDate" property alias cfg_customDateFormat: customDateFormat.text - property alias cfg_use24hFormat: use24hFormat.checkState + property alias cfg_use24hFormat: use24hFormat.currentIndex onCfg_fontFamilyChanged: { // HACK by the time we populate our model and/or the ComboBox is finished the value is still undefined @@ -88,12 +88,6 @@ text: i18n("Show seconds") } - QtControls.CheckBox { - id: use24hFormat - text: i18nc("Checkbox label; means 24h clock format, without am/pm", "Use 24-hour Clock") - tristate: true - } - QtControls.CheckBox { id: showLocalTimezone text: i18n("Show local time zone") @@ -122,6 +116,21 @@ Kirigami.FormData.isSection: true } + QtControls.ComboBox { + id: use24hFormat + Kirigami.FormData.label: i18n("Time display:") + model: [ + i18n("12-hour"), + i18n("Use locale default"), + i18n("24-hour") + ] + onCurrentIndexChanged: cfg_use24hFormat = currentIndex + } + + Item { + Kirigami.FormData.isSection: true + } + QtControls.ComboBox { id: dateFormat Kirigami.FormData.label: i18n("Date format:")