mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibGUI+HackStudio+PixelPaint: Port Widget title to the new String
I had to add a set_title(String) helper function for ImageEditor because TabWidget requires it. This is a temporary fix and will be handled in subsequent commit.
This commit is contained in:
parent
858e55b653
commit
3805e4e3a9
7 changed files with 15 additions and 13 deletions
|
@ -53,7 +53,7 @@ TabWidget::TabWidget()
|
|||
|
||||
ErrorOr<void> TabWidget::try_add_widget(Widget& widget)
|
||||
{
|
||||
TRY(m_tabs.try_append({ widget.title(), nullptr, &widget, false }));
|
||||
TRY(m_tabs.try_append({ widget.title().to_deprecated_string(), nullptr, &widget, false }));
|
||||
TRY(try_add_child(widget));
|
||||
update_focus_policy();
|
||||
if (on_tab_count_change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue