mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: use full icon path.
For some reason Kirigami.Icon mess up icon display when filename extension is omitted. Because of this a perfectly good, scalable svg show up as a low resolution scaled up icon. Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
This commit is contained in:
parent
cc77046db5
commit
2466351a5f
2 changed files with 5 additions and 5 deletions
|
@ -141,7 +141,7 @@ Kirigami.Page {
|
||||||
property QtObject deleteAction: Kirigami.Action {
|
property QtObject deleteAction: Kirigami.Action {
|
||||||
text: qsTr("Delete dive")
|
text: qsTr("Delete dive")
|
||||||
icon {
|
icon {
|
||||||
name: ":/icons/trash-empty"
|
name: ":/icons/trash-empty.svg"
|
||||||
}
|
}
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
var deletedId = currentItem.modelData.dive.id
|
var deletedId = currentItem.modelData.dive.id
|
||||||
|
@ -158,7 +158,7 @@ Kirigami.Page {
|
||||||
property QtObject cancelAction: Kirigami.Action {
|
property QtObject cancelAction: Kirigami.Action {
|
||||||
text: qsTr("Cancel edit")
|
text: qsTr("Cancel edit")
|
||||||
icon {
|
icon {
|
||||||
name: ":/icons/dialog-cancel"
|
name: ":/icons/dialog-cancel.svg"
|
||||||
}
|
}
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
endEditMode()
|
endEditMode()
|
||||||
|
@ -178,7 +178,7 @@ Kirigami.Page {
|
||||||
|
|
||||||
actions.main: Kirigami.Action {
|
actions.main: Kirigami.Action {
|
||||||
icon {
|
icon {
|
||||||
name: state !== "view" ? ":/icons/document-save" : ":/icons/document-edit"
|
name: state !== "view" ? ":/icons/document-save.svg" : ":/icons/document-edit.svg"
|
||||||
color: subsurfaceTheme.primaryColor
|
color: subsurfaceTheme.primaryColor
|
||||||
}
|
}
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
|
@ -74,7 +74,7 @@ Kirigami.ScrollablePage {
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
icon {
|
icon {
|
||||||
name: ":/icons/trash-empty"
|
name: ":/icons/trash-empty.svg"
|
||||||
}
|
}
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
print("delete this!")
|
print("delete this!")
|
||||||
|
@ -83,7 +83,7 @@ Kirigami.ScrollablePage {
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
icon {
|
icon {
|
||||||
name: ":/icons/gps"
|
name: ":/icons/gps.svg"
|
||||||
}
|
}
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
showMap()
|
showMap()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue