Fix linkpreview tooltip

Fix linkpreview tooltip so that the correct text is always shown.

BUG: 467106
This commit is contained in:
James Graham
2023-11-11 17:29:15 +00:00
parent 5942eac5ed
commit 4065aa6a2e

View File

@@ -110,11 +110,15 @@ Loader {
anchors.bottom: parent.bottom
visible: componentRoot.hovered && (componentRoot.truncated || checked)
checkable: true
text: checked ? i18n("Shrink preview") : i18n("Expand preview")
icon.name: checked ? "go-up" : "go-down"
display: QQC2.AbstractButton.IconOnly
QQC2.ToolTip.text: checked ? i18n("Shrink preview") : i18n("Expand preview")
QQC2.ToolTip.visible: hovered
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip {
text: maximizeButton.text
visible: hovered
delay: Kirigami.Units.toolTipDelay
}
}
}
}