mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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
7 changed files with 12 additions and 12 deletions
|
@ -1122,7 +1122,7 @@ void Widget::set_tooltip(String tooltip)
|
|||
void Widget::show_or_hide_tooltip()
|
||||
{
|
||||
if (has_tooltip())
|
||||
Application::the()->show_tooltip(m_tooltip.to_deprecated_string(), this);
|
||||
Application::the()->show_tooltip(m_tooltip, this);
|
||||
else
|
||||
Application::the()->hide_tooltip();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue