mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47: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
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
ErrorOr<void> add_tab(NonnullRefPtr<Tab> const& tab, DeprecatedString title, StringView id)
|
||||
{
|
||||
tab->set_title(move(title));
|
||||
tab->set_title(TRY(String::from_deprecated_string(title)));
|
||||
TRY(m_tab_widget->try_add_widget(*tab));
|
||||
TRY(m_tabs.try_set(id, tab));
|
||||
tab->set_settings_window(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue