1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

Userland: Replace usages of AbstractButton::text_deprecated with text()

This commit is contained in:
Karol Kosek 2023-02-12 11:40:58 +01:00 committed by Linus Groh
parent fca29eae09
commit d32d4029d3
9 changed files with 25 additions and 25 deletions

View file

@ -47,7 +47,7 @@ void CheckBox::paint_event(PaintEvent& event)
auto text_rect = rect();
if (m_checkbox_position == CheckBoxPosition::Left)
text_rect.set_left(s_box_width + s_horizontal_padding);
text_rect.set_width(font().width(text_deprecated()));
text_rect.set_width(font().width(text()));
text_rect.set_top(height() / 2 - font().glyph_height() / 2);
text_rect.set_height(font().glyph_height());
@ -90,7 +90,7 @@ void CheckBox::set_autosize(bool autosize)
void CheckBox::size_to_fit()
{
set_fixed_width(s_box_width + font().width(text_deprecated()) + s_horizontal_padding * 2);
set_fixed_width(s_box_width + font().width(text()) + s_horizontal_padding * 2);
}
}