From 29107ca7f2a37fa38463804ff67b911b9e0523e5 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 24 Jul 2019 15:58:43 -0400 Subject: [PATCH] Hide tooltips when they're not hovered anymore Fix hovered avatar staying visible when cursor goes outside of window (in most cases) --- src/qml/Base/HToolTip.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qml/Base/HToolTip.qml b/src/qml/Base/HToolTip.qml index 8bf8745a..a1c034f3 100644 --- a/src/qml/Base/HToolTip.qml +++ b/src/qml/Base/HToolTip.qml @@ -19,4 +19,8 @@ ToolTip { TapHandler { onTapped: { toolTip.hide() } } + + HoverHandler { + onHoveredChanged: if (!hovered) { toolTip.hide() } + } }