mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibGUI: Port tooltip in Breadcrumbbar to String
This commit is contained in:
parent
dd92d09268
commit
3944c39b3a
4 changed files with 7 additions and 7 deletions
|
@ -70,13 +70,13 @@ void Breadcrumbbar::clear_segments()
|
|||
m_selected_segment = {};
|
||||
}
|
||||
|
||||
void Breadcrumbbar::append_segment(DeprecatedString text, Gfx::Bitmap const* icon, DeprecatedString data, DeprecatedString tooltip)
|
||||
void Breadcrumbbar::append_segment(DeprecatedString text, Gfx::Bitmap const* icon, DeprecatedString data, String tooltip)
|
||||
{
|
||||
auto& button = add<BreadcrumbButton>();
|
||||
button.set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
button.set_text(String::from_deprecated_string(text).release_value_but_fixme_should_propagate_errors());
|
||||
button.set_icon(icon);
|
||||
button.set_tooltip_deprecated(move(tooltip));
|
||||
button.set_tooltip(move(tooltip));
|
||||
button.set_focus_policy(FocusPolicy::TabFocus);
|
||||
button.set_checkable(true);
|
||||
button.set_exclusive(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue