diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-13 22:51:50 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-13 22:51:50 +0200 |
commit | a3fb19fe9c7f810bc997977eadb6ddb63e45cf93 (patch) | |
tree | cb10fe380ffb69d6d1c7f87a17a466c8ec9a0716 /Widgets/Widget.h | |
parent | dfb70ed234fa82ea88665657af6758250bb54c3a (diff) | |
download | serenity-a3fb19fe9c7f810bc997977eadb6ddb63e45cf93.zip |
Use fooEvent() type names for the virtual event handlers.
Diffstat (limited to 'Widgets/Widget.h')
-rw-r--r-- | Widgets/Widget.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Widgets/Widget.h b/Widgets/Widget.h index 5c2c09d6e4..d592e91375 100644 --- a/Widgets/Widget.h +++ b/Widgets/Widget.h @@ -14,14 +14,14 @@ public: virtual ~Widget(); virtual void event(Event&); - virtual void onPaint(PaintEvent&); - virtual void onShow(ShowEvent&); - virtual void onHide(HideEvent&); - virtual void onKeyDown(KeyEvent&); - virtual void onKeyUp(KeyEvent&); - virtual void onMouseMove(MouseEvent&); - virtual void onMouseDown(MouseEvent&); - virtual void onMouseUp(MouseEvent&); + virtual void paintEvent(PaintEvent&); + virtual void showEvent(ShowEvent&); + virtual void hideEvent(HideEvent&); + virtual void keyDownEvent(KeyEvent&); + virtual void keyUpEvent(KeyEvent&); + virtual void mouseMoveEvent(MouseEvent&); + virtual void mouseDownEvent(MouseEvent&); + virtual void mouseUpEvent(MouseEvent&); Rect relativeRect() const { return m_relativeRect; } Point relativePosition() const { return m_relativeRect.location(); } |