diff options
author | Linus Groh <mail@linusgroh.de> | 2020-08-15 11:44:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-15 13:45:08 +0200 |
commit | 47d7faa998b933e669747824baa35c908c9c3144 (patch) | |
tree | f17e0b29da31d6ad2a440d8c0d6b09cb2c595316 /AK | |
parent | f19b88c96518176e962b487baf7937ceacf1f235 (diff) | |
download | serenity-47d7faa998b933e669747824baa35c908c9c3144.zip |
LibGUI: Update active tooltip when source widget changes the label
Application::show_tooltip() now keeps track of the application's active
tooltip source widget so it can be updated while being shown when the
same widget updates its tooltip label.
Application::hide_tooltip() will unset the tooltip source widget,
respectively.
This is pretty useful for the ResourceGraph applet's tooltips!
Also re-use the Application::TooltipWindow's rect position in its
set_tooltip() method to avoid flickering from the window temporarily
being moved to 100, 100 and the position adjusted moments later.
Diffstat (limited to 'AK')
0 files changed, 0 insertions, 0 deletions