diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-03 14:39:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-03 14:39:19 +0200 |
commit | 13226c21a99d70dacd26aee69f3982ee72ff431a (patch) | |
tree | 985f7ff3726e438619bd87d5fe68197292d307e3 /plugingui/button.h | |
parent | 21bb5bd2bd4243dc83a08d6e0329b5de2f96b1fe (diff) |
Add missing overrides.
Diffstat (limited to 'plugingui/button.h')
-rw-r--r-- | plugingui/button.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugingui/button.h b/plugingui/button.h index 7302b87..c13f7dd 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -39,8 +39,9 @@ public: Button(Widget *parent); ~Button(); - bool isFocusable() { return true; } - bool catchMouse() { return true; } + // From Widget: + bool isFocusable() override { return true; } + bool catchMouse() override { return true; } void setText(std::string text); @@ -49,11 +50,11 @@ public: protected: virtual void clicked() {} - virtual void repaintEvent(RepaintEvent *e); - virtual void buttonEvent(ButtonEvent *e); - - virtual void mouseLeaveEvent(); - virtual void mouseEnterEvent(); + // From Widget: + virtual void repaintEvent(RepaintEvent *e) override; + virtual void buttonEvent(ButtonEvent *e) override; + virtual void mouseLeaveEvent() override; + virtual void mouseEnterEvent() override; private: bool in_button; |