kcms: Port away from Kirigami.Action.iconName
This commit is contained in:
parent
182fcb1791
commit
38ad317f27
4 changed files with 10 additions and 10 deletions
|
@ -88,7 +88,7 @@ KCM.GridView {
|
||||||
}
|
}
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "edit-entry"
|
icon.name: "edit-entry"
|
||||||
tooltip: i18n("Edit %1 Theme", model.display)
|
tooltip: i18n("Edit %1 Theme", model.display)
|
||||||
enabled: model.configureable
|
enabled: model.configureable
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
|
@ -85,7 +85,7 @@ KCM.ScrollViewKCM {
|
||||||
id: renameAction
|
id: renameAction
|
||||||
enabled: model && !model.IsMissing
|
enabled: model && !model.IsMissing
|
||||||
visible: !applyAction.visible
|
visible: !applyAction.visible
|
||||||
iconName: "edit-rename"
|
icon.name: "edit-rename"
|
||||||
tooltip: i18nc("@info:tooltip", "Rename")
|
tooltip: i18nc("@info:tooltip", "Rename")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
nameField.readOnly = false;
|
nameField.readOnly = false;
|
||||||
|
@ -96,7 +96,7 @@ KCM.ScrollViewKCM {
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
id: applyAction
|
id: applyAction
|
||||||
visible: !nameField.readOnly
|
visible: !nameField.readOnly
|
||||||
iconName: "dialog-ok-apply"
|
icon.name: "dialog-ok-apply"
|
||||||
tooltip: i18nc("@info:tooltip", "Confirm new name")
|
tooltip: i18nc("@info:tooltip", "Confirm new name")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
nameField.readOnly = true;
|
nameField.readOnly = true;
|
||||||
|
@ -104,7 +104,7 @@ KCM.ScrollViewKCM {
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
enabled: model && !model.IsMissing && desktopsList.count !== 1
|
enabled: model && !model.IsMissing && desktopsList.count !== 1
|
||||||
iconName: "edit-delete"
|
icon.name: "edit-delete"
|
||||||
tooltip: i18nc("@info:tooltip", "Remove")
|
tooltip: i18nc("@info:tooltip", "Remove")
|
||||||
onTriggered: kcm.desktopsModel.removeDesktop(model.Id)
|
onTriggered: kcm.desktopsModel.removeDesktop(model.Id)
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ KCM.ScrollViewKCM {
|
||||||
text: i18n("Select the rules to export")
|
text: i18n("Select the rules to export")
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "dialog-ok-apply"
|
icon.name: "dialog-ok-apply"
|
||||||
text: checked ? i18n("Unselect All") : i18n("Select All")
|
text: checked ? i18n("Unselect All") : i18n("Select All")
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: selectedIndexes.length === ruleBookView.count
|
checked: selectedIndexes.length === ruleBookView.count
|
||||||
|
@ -83,7 +83,7 @@ KCM.ScrollViewKCM {
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "document-save"
|
icon.name: "document-save"
|
||||||
text: i18n("Save Rules")
|
text: i18n("Save Rules")
|
||||||
enabled: selectedIndexes.length > 0
|
enabled: selectedIndexes.length > 0
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
@ -205,7 +205,7 @@ KCM.ScrollViewKCM {
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18n("Edit")
|
text: i18n("Edit")
|
||||||
iconName: "edit-entry"
|
icon.name: "edit-entry"
|
||||||
visible: !exportInfo.visible
|
visible: !exportInfo.visible
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
kcm.editRule(index);
|
kcm.editRule(index);
|
||||||
|
@ -214,7 +214,7 @@ KCM.ScrollViewKCM {
|
||||||
,
|
,
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18n("Duplicate")
|
text: i18n("Duplicate")
|
||||||
iconName: "edit-duplicate"
|
icon.name: "edit-duplicate"
|
||||||
visible: !exportInfo.visible
|
visible: !exportInfo.visible
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
kcm.duplicateRule(index);
|
kcm.duplicateRule(index);
|
||||||
|
@ -223,7 +223,7 @@ KCM.ScrollViewKCM {
|
||||||
,
|
,
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18n("Delete")
|
text: i18n("Delete")
|
||||||
iconName: "entry-delete"
|
icon.name: "entry-delete"
|
||||||
visible: !exportInfo.visible
|
visible: !exportInfo.visible
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
kcm.removeRule(index);
|
kcm.removeRule(index);
|
||||||
|
|
|
@ -56,7 +56,7 @@ ScrollViewKCM {
|
||||||
alignment: Qt.AlignRight
|
alignment: Qt.AlignRight
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "document-import"
|
icon.name: "document-import"
|
||||||
text: i18n("Install from File...")
|
text: i18n("Install from File...")
|
||||||
onTriggered: kcm.importScript()
|
onTriggered: kcm.importScript()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue