mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Tooltips: proper tooltip service
This commit is contained in:
@@ -73,20 +73,20 @@ Rectangle {
|
||||
onEntered: {
|
||||
hovering = root.enabled ? true : false
|
||||
if (tooltipText) {
|
||||
PanelService.tooltip.show(parent, tooltipText, tooltipDirection)
|
||||
TooltipService.show(parent, tooltipText, tooltipDirection)
|
||||
}
|
||||
root.entered()
|
||||
}
|
||||
onExited: {
|
||||
hovering = false
|
||||
if (tooltipText) {
|
||||
PanelService.tooltip.hide()
|
||||
TooltipService.hide()
|
||||
}
|
||||
root.exited()
|
||||
}
|
||||
onClicked: function (mouse) {
|
||||
if (tooltipText) {
|
||||
PanelService.tooltip.hide()
|
||||
TooltipService.hide()
|
||||
}
|
||||
if (!root.enabled && !allowClickWhenDisabled) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user