Fix the tooltips for the two drawer buttons at the top

One of them didn't even have a tooltip, which is a simple oversight
since it already has accessible text. The tooltips now use the attached
property instead of creating a new QQC2.ToolTip too.
This commit is contained in:
Joshua Goins
2024-06-08 11:39:54 -04:00
parent 277a4ad124
commit 7daae6a2d9

View File

@@ -107,6 +107,10 @@ RowLayout {
sequence: "Ctrl+F" sequence: "Ctrl+F"
onActivated: searchButton.clicked() onActivated: searchButton.clicked()
} }
QQC2.ToolTip.visible: hovered
QQC2.ToolTip.text: text
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
} }
QQC2.ToolButton { QQC2.ToolButton {
@@ -130,9 +134,9 @@ RowLayout {
} }
} }
QQC2.ToolTip { QQC2.ToolTip.visible: hovered
text: parent.text QQC2.ToolTip.text: text
} QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
} }
Component { Component {