summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractButton.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-05 15:46:37 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-05 15:50:22 +0100
commit3edcaa9b9907e430ed59aa562b105c3d25d95d8a (patch)
tree947c9e5ff3a3efa22d6793472ce7fc355469086a /Libraries/LibGUI/AbstractButton.h
parent42f2696355e70de0146c772cc17bf5b238aded4b (diff)
downloadserenity-3edcaa9b9907e430ed59aa562b105c3d25d95d8a.zip
LibGUI: Implement set_property() on Widget and AbstractButton
This makes it possible for an RPC client to modify some interesting widget properties.
Diffstat (limited to 'Libraries/LibGUI/AbstractButton.h')
-rw-r--r--Libraries/LibGUI/AbstractButton.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/AbstractButton.h b/Libraries/LibGUI/AbstractButton.h
index 3b833a08ec..cbdbbb74c2 100644
--- a/Libraries/LibGUI/AbstractButton.h
+++ b/Libraries/LibGUI/AbstractButton.h
@@ -71,6 +71,7 @@ protected:
virtual void change_event(Event&) override;
virtual void save_to(JsonObject&) override;
+ virtual bool set_property(const StringView& name, const JsonValue& value) override;
void paint_text(Painter&, const Gfx::Rect&, const Gfx::Font&, Gfx::TextAlignment);