1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibGUI: Make GUI::Widget::set_tooltip() take a String

There was no reason for this to take a StringView.
This commit is contained in:
Andreas Kling 2021-04-16 19:12:37 +02:00
parent 4454735bf8
commit d33fdc925b
2 changed files with 3 additions and 3 deletions

View file

@ -983,9 +983,9 @@ Gfx::IntRect Widget::content_rect() const
return rect;
}
void Widget::set_tooltip(const StringView& tooltip)
void Widget::set_tooltip(String tooltip)
{
m_tooltip = tooltip;
m_tooltip = move(tooltip);
if (Application::the()->tooltip_source_widget() == this)
show_or_hide_tooltip();
}