Commit e4d507ec authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Common/Tooltip/TooltipArea): supports wheel events to hide tooltip

parent 87ee80bb
......@@ -6,15 +6,23 @@ MouseArea {
property alias text: tooltip.text
property var tooltipParent: this
property bool _visible: false
anchors.fill: parent
hoverEnabled: true
scrollGestureEnabled: true
onContainsMouseChanged: _visible = containsMouse
onPressed: mouse.accepted = false
onWheel: {
_visible = false
wheel.accepted = false
}
Tooltip {
id: tooltip
parent: tooltipParent
visible: containsMouse
visible: _visible
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment