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:
parent
4454735bf8
commit
d33fdc925b
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue