From 38ad317f277cbc4c7f95ae7190b91d8759abb145 Mon Sep 17 00:00:00 2001 From: Mike Noe Date: Wed, 26 Apr 2023 19:43:44 -0400 Subject: [PATCH] kcms: Port away from Kirigami.Action.iconName --- src/kcms/decoration/package/contents/ui/Themes.qml | 2 +- src/kcms/desktop/package/contents/ui/main.qml | 6 +++--- src/kcms/rules/package/contents/ui/main.qml | 10 +++++----- src/kcms/scripts/package/contents/ui/main.qml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/kcms/decoration/package/contents/ui/Themes.qml b/src/kcms/decoration/package/contents/ui/Themes.qml index 416b075f4b..77b1634965 100644 --- a/src/kcms/decoration/package/contents/ui/Themes.qml +++ b/src/kcms/decoration/package/contents/ui/Themes.qml @@ -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: { diff --git a/src/kcms/desktop/package/contents/ui/main.qml b/src/kcms/desktop/package/contents/ui/main.qml index 78600cba42..d44150c610 100644 --- a/src/kcms/desktop/package/contents/ui/main.qml +++ b/src/kcms/desktop/package/contents/ui/main.qml @@ -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) } diff --git a/src/kcms/rules/package/contents/ui/main.qml b/src/kcms/rules/package/contents/ui/main.qml index ef798fcb7f..08adf043af 100644 --- a/src/kcms/rules/package/contents/ui/main.qml +++ b/src/kcms/rules/package/contents/ui/main.qml @@ -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); diff --git a/src/kcms/scripts/package/contents/ui/main.qml b/src/kcms/scripts/package/contents/ui/main.qml index 17bfca9ad0..2d9d0da27d 100644 --- a/src/kcms/scripts/package/contents/ui/main.qml +++ b/src/kcms/scripts/package/contents/ui/main.qml @@ -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() },