mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
Userland: Port GUI::Application::show_tooltip() to String
This most importantly gets rid of a chain of "String to DeprecatedString to String" transformations when setting a tooltip from GUI::Widget's set_tooltip function.
This commit is contained in:
parent
16defb4806
commit
a3ddba4191
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/krkk
Commit: a3ddba4191
Pull-request: https://github.com/SerenityOS/serenity/pull/21020
Reviewed-by: https://github.com/AtkinsSJ
7 changed files with 12 additions and 12 deletions
|
@ -41,8 +41,8 @@ public:
|
|||
void register_global_shortcut_action(Badge<Action>, Action&);
|
||||
void unregister_global_shortcut_action(Badge<Action>, Action&);
|
||||
|
||||
void show_tooltip(DeprecatedString, Widget const* tooltip_source_widget);
|
||||
void show_tooltip_immediately(DeprecatedString, Widget const* tooltip_source_widget);
|
||||
void show_tooltip(String, Widget const* tooltip_source_widget);
|
||||
void show_tooltip_immediately(String, Widget const* tooltip_source_widget);
|
||||
void hide_tooltip();
|
||||
Widget const* tooltip_source_widget() { return m_tooltip_source_widget; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue