summaryrefslogtreecommitdiff
path: root/plugingui/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.h')
-rw-r--r--plugingui/button.h15
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;