diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-02-11 21:42:24 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:45:09 +0000 |
commit | 14951b92ca6160664ccb68c5e1b2d40133763e5f (patch) | |
tree | 0608e2df747b331a5bc2c49e37abf4ca24e04318 /Userland/Libraries/LibGUI/Button.h | |
parent | e39adc4772dbc575fc8209130129270ceea24229 (diff) | |
download | serenity-14951b92ca6160664ccb68c5e1b2d40133763e5f.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/Button.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Button.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGUI/Button.h b/Userland/Libraries/LibGUI/Button.h index 9420551997..e5301359cf 100644 --- a/Userland/Libraries/LibGUI/Button.h +++ b/Userland/Libraries/LibGUI/Button.h @@ -68,7 +68,6 @@ public: virtual Optional<UISize> calculated_min_size() const override; protected: - explicit Button(DeprecatedString text); explicit Button(String text = {}); virtual void mousedown_event(MouseEvent&) override; virtual void mousemove_event(MouseEvent&) override; @@ -92,10 +91,6 @@ class DialogButton final : public Button { public: virtual ~DialogButton() override {}; - explicit DialogButton(DeprecatedString deprecated_text) - : DialogButton(String::from_deprecated_string(deprecated_text).release_value_but_fixme_should_propagate_errors()) - { - } explicit DialogButton(String text = {}) : Button(move(text)) { |