From 5ddfe95b55233d2b766a1fce69db5dc2c3871ecc Mon Sep 17 00:00:00 2001 From: ajuncosa Date: Mon, 22 Jun 2026 14:52:04 +0200 Subject: [PATCH] Add tooltips to StyledTabButton --- .../uicomponents/qml/Muse/UiComponents/StyledTabButton.qml | 1 + .../uicomponents/qml/Muse/UiComponents/StyledTextLabel.qml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/framework/uicomponents/qml/Muse/UiComponents/StyledTabButton.qml b/framework/uicomponents/qml/Muse/UiComponents/StyledTabButton.qml index 6ce5aa0267..1d9ace121d 100644 --- a/framework/uicomponents/qml/Muse/UiComponents/StyledTabButton.qml +++ b/framework/uicomponents/qml/Muse/UiComponents/StyledTabButton.qml @@ -86,6 +86,7 @@ TabButton { text: root.text font: root.font opacity: 0.75 + displayTruncatedTextOnHover: true } background: Item { diff --git a/framework/uicomponents/qml/Muse/UiComponents/StyledTextLabel.qml b/framework/uicomponents/qml/Muse/UiComponents/StyledTextLabel.qml index 28581185cf..54be20a54f 100644 --- a/framework/uicomponents/qml/Muse/UiComponents/StyledTextLabel.qml +++ b/framework/uicomponents/qml/Muse/UiComponents/StyledTextLabel.qml @@ -52,6 +52,11 @@ Text { cursorShape: root.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor hoverEnabled: true + onPressed: function(mouse) { + ui.tooltip.hide(root, true) + mouse.accepted = false + } + onClicked: { ui.tooltip.hide(root, true)