applets/digital-clock: Update KCM names for Clock and Format settings

Their names have been changed in 5.24, so change to their new names.

BUG: 447502
wilder-5.24
Fushan Wen 4 years ago committed by Nate Graham
parent 70d23b891e
commit 4e34ba26e6
  1. 4
      applets/digital-clock/package/contents/ui/CalendarView.qml
  2. 8
      applets/digital-clock/package/contents/ui/configAppearance.qml
  3. 4
      applets/digital-clock/package/contents/ui/configTimeZones.qml
  4. 8
      applets/digital-clock/package/contents/ui/main.qml

@ -518,10 +518,10 @@ PlasmaExtras.Representation {
}
PlasmaComponents3.ToolButton {
visible: KCMShell.authorize("clock.desktop").length > 0
visible: KCMShell.authorize("kcm_clock.desktop").length > 0
text: i18n("Switch…")
icon.name: "preferences-system-time"
onClicked: KCMShell.openSystemSettings("clock")
onClicked: KCMShell.openSystemSettings("kcm_clock")
PlasmaComponents3.ToolTip {
text: i18n("Switch to another timezone")

@ -63,7 +63,7 @@ QtLayouts.ColumnLayout {
Kirigami.FormLayout {
QtLayouts.Layout.fillWidth: true
QtLayouts.RowLayout {
Kirigami.FormData.label: i18n("Information:")
@ -71,7 +71,7 @@ QtLayouts.ColumnLayout {
id: showDate
text: i18n("Show date")
}
QtControls.ComboBox {
id: dateDisplayFormat
enabled: showDate.checked
@ -146,10 +146,10 @@ QtLayouts.ColumnLayout {
}
QtControls.Button {
visible: KCMShell.authorize("formats.desktop").length > 0
visible: KCMShell.authorize("kcm_formats.desktop").length > 0
text: i18n("Change Regional Settings…")
icon.name: "preferences-desktop-locale"
onClicked: KCMShell.openSystemSettings("formats")
onClicked: KCMShell.openSystemSettings("kcm_formats")
}
}

@ -95,10 +95,10 @@ ColumnLayout {
trailing: RowLayout {
QQC2.Button {
visible: model.isLocalTimeZone && KCMShell.authorize("clock.desktop").length > 0
visible: model.isLocalTimeZone && KCMShell.authorize("kcm_clock.desktop").length > 0
text: i18n("Switch Local Time Zone…")
icon.name: "preferences-system-time"
onClicked: KCMShell.openSystemSettings("clock")
onClicked: KCMShell.openSystemSettings("kcm_clock")
}
QQC2.Button {
visible: !model.isLocalTimeZone && configuredTimezoneList.count > 1

@ -110,11 +110,11 @@ Item {
}
function action_clockkcm() {
KCMShell.openSystemSettings("clock");
KCMShell.openSystemSettings("kcm_clock");
}
function action_formatskcm() {
KCMShell.openSystemSettings("formats");
KCMShell.openSystemSettings("kcm_formats");
}
Component.onCompleted: {
@ -122,10 +122,10 @@ Item {
ClipboardMenu.setupMenu(plasmoid.action("clipboard"));
root.initTimezones();
if (KCMShell.authorize("clock.desktop").length > 0) {
if (KCMShell.authorize("kcm_clock.desktop").length > 0) {
plasmoid.setAction("clockkcm", i18n("Adjust Date and Time…"), "preferences-system-time");
}
if (KCMShell.authorize("formats.desktop").length > 0) {
if (KCMShell.authorize("kcm_formats.desktop").length > 0) {
plasmoid.setAction("formatskcm", i18n("Set Time Format…"));
}

Loading…
Cancel
Save