summaryrefslogtreecommitdiff
path: root/plugingui/tooltip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/tooltip.cc')
-rw-r--r--plugingui/tooltip.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugingui/tooltip.cc b/plugingui/tooltip.cc
index 499ab14..19bc89b 100644
--- a/plugingui/tooltip.cc
+++ b/plugingui/tooltip.cc
@@ -185,4 +185,12 @@ void Tooltip::show()
window()->setMouseFocus(this);
}
+void Tooltip::buttonEvent(ButtonEvent* buttonEvent)
+{
+ if(buttonEvent->direction == Direction::down)
+ {
+ hide();
+ }
+}
+
} // GUI::