mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
LibGUI: Hide the tooltip if widget with open tooltip unsets it
If you call set_tooltip({}) on a widget currently showing a tooltip, we will now remove the tooltip window from screen.
This commit is contained in:
parent
a0f2135f47
commit
347e5aa7b5
2 changed files with 8 additions and 6 deletions
|
@ -328,6 +328,8 @@ protected:
|
|||
virtual void did_begin_inspection() override;
|
||||
virtual void did_end_inspection() override;
|
||||
|
||||
void show_or_hide_tooltip();
|
||||
|
||||
private:
|
||||
void handle_paint_event(PaintEvent&);
|
||||
void handle_resize_event(ResizeEvent&);
|
||||
|
@ -339,8 +341,6 @@ private:
|
|||
void focus_previous_widget(FocusSource, bool siblings_only);
|
||||
void focus_next_widget(FocusSource, bool siblings_only);
|
||||
|
||||
void show_tooltip();
|
||||
|
||||
bool load_from_json(const JsonObject&);
|
||||
|
||||
// HACK: These are used as property getters for the fixed_* size property aliases.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue