diff options
Diffstat (limited to 'Libraries/LibGUI/Button.h')
-rw-r--r-- | Libraries/LibGUI/Button.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/Button.h b/Libraries/LibGUI/Button.h index 7ab0d8a9d7..e28972ca4b 100644 --- a/Libraries/LibGUI/Button.h +++ b/Libraries/LibGUI/Button.h @@ -47,12 +47,12 @@ public: void set_text_alignment(Gfx::TextAlignment text_alignment) { m_text_alignment = text_alignment; } Gfx::TextAlignment text_alignment() const { return m_text_alignment; } - Function<void()> on_click; + Function<void(unsigned modifiers)> on_click; void set_button_style(Gfx::ButtonStyle style) { m_button_style = style; } Gfx::ButtonStyle button_style() const { return m_button_style; } - virtual void click() override; + virtual void click(unsigned modifiers = 0) override; void set_action(Action&); |