kcms: Port away from Kirigami.Action.iconName

This commit is contained in:
Mike Noe 2023-04-26 19:43:44 -04:00 committed by Vlad Zahorodnii
parent 182fcb1791
commit 38ad317f27
4 changed files with 10 additions and 10 deletions

View file

@ -88,7 +88,7 @@ KCM.GridView {
}
actions: [
Kirigami.Action {
iconName: "edit-entry"
icon.name: "edit-entry"
tooltip: i18n("Edit %1 Theme", model.display)
enabled: model.configureable
onTriggered: {

View file

@ -85,7 +85,7 @@ KCM.ScrollViewKCM {
id: renameAction
enabled: model && !model.IsMissing
visible: !applyAction.visible
iconName: "edit-rename"
icon.name: "edit-rename"
tooltip: i18nc("@info:tooltip", "Rename")
onTriggered: {
nameField.readOnly = false;
@ -96,7 +96,7 @@ KCM.ScrollViewKCM {
Kirigami.Action {
id: applyAction
visible: !nameField.readOnly
iconName: "dialog-ok-apply"
icon.name: "dialog-ok-apply"
tooltip: i18nc("@info:tooltip", "Confirm new name")
onTriggered: {
nameField.readOnly = true;
@ -104,7 +104,7 @@ KCM.ScrollViewKCM {
},
Kirigami.Action {
enabled: model && !model.IsMissing && desktopsList.count !== 1
iconName: "edit-delete"
icon.name: "edit-delete"
tooltip: i18nc("@info:tooltip", "Remove")
onTriggered: kcm.desktopsModel.removeDesktop(model.Id)
}

View file

@ -69,7 +69,7 @@ KCM.ScrollViewKCM {
text: i18n("Select the rules to export")
actions: [
Kirigami.Action {
iconName: "dialog-ok-apply"
icon.name: "dialog-ok-apply"
text: checked ? i18n("Unselect All") : i18n("Select All")
checkable: true
checked: selectedIndexes.length === ruleBookView.count
@ -83,7 +83,7 @@ KCM.ScrollViewKCM {
}
,
Kirigami.Action {
iconName: "document-save"
icon.name: "document-save"
text: i18n("Save Rules")
enabled: selectedIndexes.length > 0
onTriggered: {
@ -205,7 +205,7 @@ KCM.ScrollViewKCM {
actions: [
Kirigami.Action {
text: i18n("Edit")
iconName: "edit-entry"
icon.name: "edit-entry"
visible: !exportInfo.visible
onTriggered: {
kcm.editRule(index);
@ -214,7 +214,7 @@ KCM.ScrollViewKCM {
,
Kirigami.Action {
text: i18n("Duplicate")
iconName: "edit-duplicate"
icon.name: "edit-duplicate"
visible: !exportInfo.visible
onTriggered: {
kcm.duplicateRule(index);
@ -223,7 +223,7 @@ KCM.ScrollViewKCM {
,
Kirigami.Action {
text: i18n("Delete")
iconName: "entry-delete"
icon.name: "entry-delete"
visible: !exportInfo.visible
onTriggered: {
kcm.removeRule(index);

View file

@ -56,7 +56,7 @@ ScrollViewKCM {
alignment: Qt.AlignRight
actions: [
Kirigami.Action {
iconName: "document-import"
icon.name: "document-import"
text: i18n("Install from File...")
onTriggered: kcm.importScript()
},