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

LibGUI+Userland: Add _deprecated suffix to AbstractButton::{set_,}text

This commit is contained in:
Karol Kosek 2023-02-12 11:13:18 +01:00 committed by Linus Groh
parent 61b49daf0a
commit d32b052f22
30 changed files with 83 additions and 83 deletions

View file

@ -56,18 +56,18 @@ private:
if (action.icon())
set_icon(action.icon());
else
set_text(action.text());
set_text_deprecated(action.text());
set_button_style(Gfx::ButtonStyle::Coolbar);
}
virtual void set_text(DeprecatedString text) override
virtual void set_text_deprecated(DeprecatedString text) override
{
auto const* action = this->action();
VERIFY(action);
set_tooltip(tooltip(*action));
if (!action->icon())
Button::set_text(move(text));
Button::set_text_deprecated(move(text));
}
DeprecatedString tooltip(Action const& action) const