diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Toolbar.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Toolbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/Toolbar.cpp b/Userland/Libraries/LibGUI/Toolbar.cpp index 16eaf772d3..360632c756 100644 --- a/Userland/Libraries/LibGUI/Toolbar.cpp +++ b/Userland/Libraries/LibGUI/Toolbar.cpp @@ -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 |