Fix linkpreview tooltip
Fix linkpreview tooltip so that the correct text is always shown. BUG: 467106
This commit is contained in:
@@ -110,11 +110,15 @@ Loader {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
visible: componentRoot.hovered && (componentRoot.truncated || checked)
|
visible: componentRoot.hovered && (componentRoot.truncated || checked)
|
||||||
checkable: true
|
checkable: true
|
||||||
|
text: checked ? i18n("Shrink preview") : i18n("Expand preview")
|
||||||
icon.name: checked ? "go-up" : "go-down"
|
icon.name: checked ? "go-up" : "go-down"
|
||||||
|
display: QQC2.AbstractButton.IconOnly
|
||||||
|
|
||||||
QQC2.ToolTip.text: checked ? i18n("Shrink preview") : i18n("Expand preview")
|
QQC2.ToolTip {
|
||||||
QQC2.ToolTip.visible: hovered
|
text: maximizeButton.text
|
||||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
visible: hovered
|
||||||
|
delay: Kirigami.Units.toolTipDelay
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user