mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +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
|
@ -487,7 +487,7 @@ ErrorOr<void> MainWidget::add_property_tab(PropertyTab const& property_tab)
|
|||
TRY(row_widget->load_from_gml(flag_property_gml));
|
||||
|
||||
auto& checkbox = *row_widget->find_descendant_of_type_named<GUI::CheckBox>("checkbox");
|
||||
checkbox.set_text_deprecated(to_string(role));
|
||||
checkbox.set_text(String::from_deprecated_string(DeprecatedString(to_string(role))).release_value_but_fixme_should_propagate_errors());
|
||||
checkbox.on_checked = [&, role](bool checked) {
|
||||
set_flag(role, checked);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue