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/ClockWidget.cpp | |
parent | dfb70ed234fa82ea88665657af6758250bb54c3a (diff) | |
download | serenity-a3fb19fe9c7f810bc997977eadb6ddb63e45cf93.zip |
Use fooEvent() type names for the virtual event handlers.
Diffstat (limited to 'Widgets/ClockWidget.cpp')
-rw-r--r-- | Widgets/ClockWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Widgets/ClockWidget.cpp b/Widgets/ClockWidget.cpp index 950c450504..6f9a5eaad7 100644 --- a/Widgets/ClockWidget.cpp +++ b/Widgets/ClockWidget.cpp @@ -13,7 +13,7 @@ ClockWidget::~ClockWidget() { } -void ClockWidget::onPaint(PaintEvent&) +void ClockWidget::paintEvent(PaintEvent&) { auto now = time(nullptr); auto& tm = *localtime(&now); @@ -26,7 +26,7 @@ void ClockWidget::onPaint(PaintEvent&) painter.drawText(rect(), timeBuf, Painter::TextAlignment::Center, Color::Black); } -void ClockWidget::onTimer(TimerEvent&) +void ClockWidget::timerEvent(TimerEvent&) { auto now = time(nullptr); if (now == m_lastSeenTimestamp) |