From c1086c9886c871d6f48c977675e598d96afaa3a3 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 8 Sep 2020 16:43:45 +0200 Subject: [PATCH] Fix tooltip for activity info. Also improves readability of the items in the list. Signed-off-by: Camila --- src/gui/tray/Window.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index c6be85c22..ee2bff841 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -471,6 +471,7 @@ Window { spacing: 0 MouseArea { + id: activityMouseArea enabled: (path !== "" || link !== "") anchors.left: activityItem.left anchors.right: ((shareButton.visible) ? shareButton.left : activityItem.right) @@ -484,9 +485,7 @@ Window { Qt.openUrlExternally(link) } } - ToolTip.visible: hovered - ToolTip.delay: 1000 - ToolTip.text: path !== "" ? qsTr("Open sync item locally") : qsTr("Open URL") + Rectangle { anchors.fill: parent color: (parent.containsMouse ? Style.lightHover : "transparent") @@ -543,6 +542,13 @@ Window { font.pixelSize: Style.subLinePixelSize color: "#808080" } + + ToolTip { + visible: activityMouseArea.containsMouse + text: activityTextTitle.text + delay: 250 + timeout: 3000 + } } Button { id: shareButton -- 2.30.2