mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +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:
parent
e39adc4772
commit
14951b92ca
8 changed files with 8 additions and 30 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue