mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 17:59:21 +00:00
feat(Common/Tooltip/TooltipArea): supports wheel events to hide tooltip
This commit is contained in:
parent
87ee80bb88
commit
e4d507ec33
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue