Fix some unqualified access

This commit is contained in:
Tobias Fella
2025-08-06 23:47:09 +02:00
parent f2a0a66b01
commit 4bbd127fe8

View File

@@ -33,7 +33,7 @@ ColumnLayout {
} }
QQC2.ToolButton { QQC2.ToolButton {
id: editImageButton id: editImageButton
visible: hasImage visible: root.hasImage
icon.name: "document-edit" icon.name: "document-edit"
text: i18n("Edit") text: i18n("Edit")
display: QQC2.AbstractButton.IconOnly display: QQC2.AbstractButton.IconOnly
@@ -61,7 +61,7 @@ ColumnLayout {
action: Kirigami.Action { action: Kirigami.Action {
text: i18n("Cancel sending attachment") text: i18n("Cancel sending attachment")
icon.name: "dialog-close" icon.name: "dialog-close"
onTriggered: attachmentCancelled() onTriggered: root.attachmentCancelled()
shortcut: "Escape" shortcut: "Escape"
} }
QQC2.ToolTip.text: text QQC2.ToolTip.text: text
@@ -75,8 +75,8 @@ ColumnLayout {
asynchronous: true asynchronous: true
cache: false // Cache is not needed. Images will rarely be shown repeatedly. cache: false // Cache is not needed. Images will rarely be shown repeatedly.
source: hasImage ? root.attachmentPath : "" source: root.hasImage ? root.attachmentPath : ""
visible: hasImage visible: root.hasImage
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
onSourceChanged: { onSourceChanged: {
@@ -114,11 +114,11 @@ ColumnLayout {
id: mimetypeIcon id: mimetypeIcon
implicitWidth: Kirigami.Units.iconSizes.smallMedium implicitWidth: Kirigami.Units.iconSizes.smallMedium
implicitHeight: Kirigami.Units.iconSizes.smallMedium implicitHeight: Kirigami.Units.iconSizes.smallMedium
source: attachmentMimetype.iconName source: root.attachmentMimetype.iconName
} }
QQC2.Label { QQC2.Label {
id: fileLabel id: fileLabel
text: baseFileName text: root.baseFileName
} }
} }
} }