From 7daae6a2d9e9e52965717eb0f0ec501a981481fb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 8 Jun 2024 11:39:54 -0400 Subject: [PATCH] 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. --- src/qml/ExploreComponent.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/qml/ExploreComponent.qml b/src/qml/ExploreComponent.qml index d8311c0eb..205959a30 100644 --- a/src/qml/ExploreComponent.qml +++ b/src/qml/ExploreComponent.qml @@ -107,6 +107,10 @@ RowLayout { sequence: "Ctrl+F" onActivated: searchButton.clicked() } + + QQC2.ToolTip.visible: hovered + QQC2.ToolTip.text: text + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay } QQC2.ToolButton { @@ -130,9 +134,9 @@ RowLayout { } } - QQC2.ToolTip { - text: parent.text - } + QQC2.ToolTip.visible: hovered + QQC2.ToolTip.text: text + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay } Component {