1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibGUI: Add a GRadioButton widget.

Radio buttons are automagically exclusive with other radio button children
of the same parent. :^)
This commit is contained in:
Andreas Kling 2019-05-23 22:37:21 +02:00
parent 00075b1c8a
commit 36d8b9e89b
8 changed files with 157 additions and 0 deletions

View file

@ -184,6 +184,8 @@ public:
void register_local_shortcut_action(Badge<GAction>, GAction&);
void unregister_local_shortcut_action(Badge<GAction>, GAction&);
virtual bool is_radio_button() const { return false; }
private:
virtual bool is_widget() const final { return true; }