mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
committed by
Andreas Kling
parent
16defb4806
commit
a3ddba4191
@@ -65,7 +65,7 @@ OutOfProcessWebView::OutOfProcessWebView()
|
||||
};
|
||||
|
||||
on_enter_tooltip_area = [](auto, auto tooltip) {
|
||||
GUI::Application::the()->show_tooltip(tooltip, nullptr);
|
||||
GUI::Application::the()->show_tooltip(MUST(String::from_deprecated_string(tooltip)), nullptr);
|
||||
};
|
||||
|
||||
on_leave_tooltip_area = []() {
|
||||
|
||||
Reference in New Issue
Block a user