From 13226c21a99d70dacd26aee69f3982ee72ff431a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 3 Oct 2015 14:39:19 +0200 Subject: Add missing overrides. --- plugingui/button.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'plugingui/button.h') 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; -- cgit v1.2.3