Replace deprecated usage of iconName with icon.name
This commit is contained in:
committed by
Tobias Fella
parent
38dcefffcb
commit
765a95050d
@@ -138,7 +138,7 @@ QQC2.ToolBar {
|
|||||||
name: Controller.activeConnection.localUser.displayName ?? Controller.activeConnection.localUser.id
|
name: Controller.activeConnection.localUser.displayName ?? Controller.activeConnection.localUser.id
|
||||||
actions.main: Kirigami.Action {
|
actions.main: Kirigami.Action {
|
||||||
text: i18n("Edit this account")
|
text: i18n("Edit this account")
|
||||||
iconName: "document-edit"
|
icon.name: "document-edit"
|
||||||
onTriggered: pageStack.pushDialogLayer(Qt.resolvedUrl('./AccountEditorPage.qml'), {
|
onTriggered: pageStack.pushDialogLayer(Qt.resolvedUrl('./AccountEditorPage.qml'), {
|
||||||
connection: Controller.activeConnection
|
connection: Controller.activeConnection
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import org.kde.kirigami 2.14 as Kirigami
|
|||||||
*/
|
*/
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
id: shareAction
|
id: shareAction
|
||||||
iconName: "emblem-shared-symbolic"
|
icon.name: "emblem-shared-symbolic"
|
||||||
text: i18n("Share")
|
text: i18n("Share")
|
||||||
tooltip: i18n("Share the selected media")
|
tooltip: i18n("Share the selected media")
|
||||||
|
|
||||||
|
|||||||
@@ -34,14 +34,14 @@ Kirigami.Page {
|
|||||||
left: Kirigami.Action {
|
left: Kirigami.Action {
|
||||||
id: undoAction
|
id: undoAction
|
||||||
text: i18nc("@action:button Undo modification", "Undo")
|
text: i18nc("@action:button Undo modification", "Undo")
|
||||||
iconName: "edit-undo"
|
icon.name: "edit-undo"
|
||||||
onTriggered: imageDoc.undo();
|
onTriggered: imageDoc.undo();
|
||||||
visible: imageDoc.edited
|
visible: imageDoc.edited
|
||||||
}
|
}
|
||||||
main: Kirigami.Action {
|
main: Kirigami.Action {
|
||||||
id: okAction
|
id: okAction
|
||||||
text: i18nc("@action:button Accept image modification", "Accept")
|
text: i18nc("@action:button Accept image modification", "Accept")
|
||||||
iconName: "dialog-ok"
|
icon.name: "dialog-ok"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
let newPath = Platform.StandardPaths.writableLocation(Platform.StandardPaths.CacheLocation) + "/" + (new Date()).getTime() + "." + imagePath.split('.').pop();
|
let newPath = Platform.StandardPaths.writableLocation(Platform.StandardPaths.CacheLocation) + "/" + (new Date()).getTime() + "." + imagePath.split('.').pop();
|
||||||
if (imageDoc.saveAs(newPath)) {;
|
if (imageDoc.saveAs(newPath)) {;
|
||||||
@@ -121,7 +121,7 @@ Kirigami.Page {
|
|||||||
display: QQC2.Button.TextBesideIcon
|
display: QQC2.Button.TextBesideIcon
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: rootEditorView.resizing ? "dialog-cancel" : "transform-crop"
|
icon.name: rootEditorView.resizing ? "dialog-cancel" : "transform-crop"
|
||||||
text: rootEditorView.resizing ? i18n("Cancel") : i18nc("@action:button Crop an image", "Crop");
|
text: rootEditorView.resizing ? i18n("Cancel") : i18nc("@action:button Crop an image", "Crop");
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
resizeRectangle.width = editImage.paintedWidth
|
resizeRectangle.width = editImage.paintedWidth
|
||||||
@@ -137,31 +137,31 @@ Kirigami.Page {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "dialog-ok"
|
icon.name: "dialog-ok"
|
||||||
visible: rootEditorView.resizing
|
visible: rootEditorView.resizing
|
||||||
text: i18nc("@action:button Crop an image", "Crop");
|
text: i18nc("@action:button Crop an image", "Crop");
|
||||||
onTriggered: rootEditorView.crop();
|
onTriggered: rootEditorView.crop();
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "object-rotate-left"
|
icon.name: "object-rotate-left"
|
||||||
text: i18nc("@action:button Rotate an image to the left", "Rotate left");
|
text: i18nc("@action:button Rotate an image to the left", "Rotate left");
|
||||||
onTriggered: imageDoc.rotate(-90);
|
onTriggered: imageDoc.rotate(-90);
|
||||||
visible: !rootEditorView.resizing
|
visible: !rootEditorView.resizing
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "object-rotate-right"
|
icon.name: "object-rotate-right"
|
||||||
text: i18nc("@action:button Rotate an image to the right", "Rotate right");
|
text: i18nc("@action:button Rotate an image to the right", "Rotate right");
|
||||||
onTriggered: imageDoc.rotate(90);
|
onTriggered: imageDoc.rotate(90);
|
||||||
visible: !rootEditorView.resizing
|
visible: !rootEditorView.resizing
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "object-flip-vertical"
|
icon.name: "object-flip-vertical"
|
||||||
text: i18nc("@action:button Mirror an image vertically", "Flip");
|
text: i18nc("@action:button Mirror an image vertically", "Flip");
|
||||||
onTriggered: imageDoc.mirror(false, true);
|
onTriggered: imageDoc.mirror(false, true);
|
||||||
visible: !rootEditorView.resizing
|
visible: !rootEditorView.resizing
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "object-flip-horizontal"
|
icon.name: "object-flip-horizontal"
|
||||||
text: i18nc("@action:button Mirror an image horizontally", "Mirror");
|
text: i18nc("@action:button Mirror an image horizontally", "Mirror");
|
||||||
onTriggered: imageDoc.mirror(true, false);
|
onTriggered: imageDoc.mirror(true, false);
|
||||||
visible: !rootEditorView.resizing
|
visible: !rootEditorView.resizing
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ Kirigami.ScrollablePage {
|
|||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
id: editDeviceAction
|
id: editDeviceAction
|
||||||
text: i18n("Edit device name")
|
text: i18n("Edit device name")
|
||||||
iconName: "document-edit"
|
icon.name: "document-edit"
|
||||||
onTriggered: deviceDelegate.editDeviceName = true
|
onTriggered: deviceDelegate.editDeviceName = true
|
||||||
}
|
}
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip {
|
||||||
@@ -129,7 +129,7 @@ Kirigami.ScrollablePage {
|
|||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
id: verifyDeviceAction
|
id: verifyDeviceAction
|
||||||
text: i18n("Verify device")
|
text: i18n("Verify device")
|
||||||
iconName: "security-low-symbolic"
|
icon.name: "security-low-symbolic"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
devices.connection.startKeyVerificationSession(devices.connection.localUserId, model.id)
|
devices.connection.startKeyVerificationSession(devices.connection.localUserId, model.id)
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ Kirigami.ScrollablePage {
|
|||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
id: logoutDeviceAction
|
id: logoutDeviceAction
|
||||||
text: i18n("Logout device")
|
text: i18n("Logout device")
|
||||||
iconName: "edit-delete-remove"
|
icon.name: "edit-delete-remove"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
passwordSheet.index = index
|
passwordSheet.index = index
|
||||||
passwordSheet.open()
|
passwordSheet.open()
|
||||||
|
|||||||
@@ -35,18 +35,18 @@ Kirigami.CategorizedSettings {
|
|||||||
},
|
},
|
||||||
Kirigami.SettingAction {
|
Kirigami.SettingAction {
|
||||||
text: i18n("Spell Checking")
|
text: i18n("Spell Checking")
|
||||||
iconName: "tools-check-spelling"
|
icon.name: "tools-check-spelling"
|
||||||
page: Qt.resolvedUrl("SonnetConfigPage.qml")
|
page: Qt.resolvedUrl("SonnetConfigPage.qml")
|
||||||
visible: Qt.platform.os !== "android"
|
visible: Qt.platform.os !== "android"
|
||||||
},
|
},
|
||||||
Kirigami.SettingAction {
|
Kirigami.SettingAction {
|
||||||
text: i18n("Network Proxy")
|
text: i18n("Network Proxy")
|
||||||
iconName: "network-connect"
|
icon.name: "network-connect"
|
||||||
page: Qt.resolvedUrl("NetworkProxyPage.qml")
|
page: Qt.resolvedUrl("NetworkProxyPage.qml")
|
||||||
},
|
},
|
||||||
Kirigami.SettingAction {
|
Kirigami.SettingAction {
|
||||||
text: i18n("Devices")
|
text: i18n("Devices")
|
||||||
iconName: "computer"
|
icon.name: "computer"
|
||||||
page: Qt.resolvedUrl("DevicesPage.qml")
|
page: Qt.resolvedUrl("DevicesPage.qml")
|
||||||
},
|
},
|
||||||
Kirigami.SettingAction {
|
Kirigami.SettingAction {
|
||||||
|
|||||||
Reference in New Issue
Block a user