summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GAbstractButton.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-09 22:10:03 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-09 22:10:03 +0200
commit7083a0104ab73b57494236ac3b7eac78a67f103f (patch)
tree2190f551297773159b01a5e1fa54fc8d78538231 /Libraries/LibGUI/GAbstractButton.h
parent2ae0333f5de5f83541869a9a5b45847a923709c3 (diff)
downloadserenity-7083a0104ab73b57494236ac3b7eac78a67f103f.zip
LibGUI: Add GActionGroup, a way to group a bunch of GActions.
This can be used to make a bunch of actions mutually exclusive. This patch only implements the exclusivity behavior for buttons.
Diffstat (limited to 'Libraries/LibGUI/GAbstractButton.h')
-rw-r--r--Libraries/LibGUI/GAbstractButton.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GAbstractButton.h b/Libraries/LibGUI/GAbstractButton.h
index 269a7ea834..9618422682 100644
--- a/Libraries/LibGUI/GAbstractButton.h
+++ b/Libraries/LibGUI/GAbstractButton.h
@@ -29,7 +29,8 @@ public:
virtual void click() = 0;
virtual const char* class_name() const override { return "GAbstractButton"; }
virtual bool accepts_focus() const override { return true; }
- virtual bool supports_keyboard_activation() const { return true; }
+ virtual bool supports_keyboard_activation() const override { return true; }
+ virtual bool is_uncheckable() const { return true; }
protected:
explicit GAbstractButton(GWidget* parent);