1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibGUI: Remove deprecated text and set_text functions in AbstractButton

This moves the functions to lambda when registering a property.
External code can now only communicate using the new String API.
This commit is contained in:
Karol Kosek 2023-02-11 21:42:24 +01:00 committed by Linus Groh
parent e39adc4772
commit 14951b92ca
8 changed files with 8 additions and 30 deletions

View file

@ -20,11 +20,6 @@ static constexpr int s_box_width = 13;
static constexpr int s_box_height = 13;
static constexpr int s_horizontal_padding = 6;
CheckBox::CheckBox(DeprecatedString deprecated_text)
: CheckBox(String::from_deprecated_string(deprecated_text).release_value_but_fixme_should_propagate_errors())
{
}
CheckBox::CheckBox(String text)
: AbstractButton(move(text))
{