diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Statusbar.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Statusbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/Statusbar.cpp b/Userland/Libraries/LibGUI/Statusbar.cpp index 73c2d0450a..ab6cd6e697 100644 --- a/Userland/Libraries/LibGUI/Statusbar.cpp +++ b/Userland/Libraries/LibGUI/Statusbar.cpp @@ -104,7 +104,7 @@ void Statusbar::update_segment(size_t index) DeprecatedString Statusbar::text(size_t index) const { - return m_segments.at(index).text_deprecated(); + return m_segments.at(index).text().to_deprecated_string(); } void Statusbar::set_text(DeprecatedString text) @@ -157,8 +157,8 @@ void Statusbar::Segment::paint_event(PaintEvent& event) if (is_clickable()) Button::paint_event(event); - else if (!text_deprecated().is_empty()) - painter.draw_text(rect().shrunken(font().max_glyph_width(), 0), text_deprecated(), text_alignment(), palette().color(foreground_role()), Gfx::TextElision::Right, Gfx::TextWrapping::DontWrap); + else if (!text().is_empty()) + painter.draw_text(rect().shrunken(font().max_glyph_width(), 0), text(), text_alignment(), palette().color(foreground_role()), Gfx::TextElision::Right, Gfx::TextWrapping::DontWrap); } void Statusbar::Segment::mousedown_event(MouseEvent& event) |