mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Userland: Set Button text using the new String class
This commit is contained in:
parent
b5cb9a9ebb
commit
e39adc4772
49 changed files with 134 additions and 127 deletions
|
@ -75,7 +75,7 @@ void Breadcrumbbar::append_segment(DeprecatedString text, Gfx::Bitmap const* ico
|
|||
{
|
||||
auto& button = add<BreadcrumbButton>();
|
||||
button.set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
button.set_text_deprecated(text);
|
||||
button.set_text(String::from_deprecated_string(text).release_value_but_fixme_should_propagate_errors());
|
||||
button.set_icon(icon);
|
||||
button.set_tooltip(move(tooltip));
|
||||
button.set_focus_policy(FocusPolicy::TabFocus);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue