summaryrefslogtreecommitdiff
path: root/Widgets/ClockWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-13 22:51:50 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-13 22:51:50 +0200
commita3fb19fe9c7f810bc997977eadb6ddb63e45cf93 (patch)
treecb10fe380ffb69d6d1c7f87a17a466c8ec9a0716 /Widgets/ClockWidget.cpp
parentdfb70ed234fa82ea88665657af6758250bb54c3a (diff)
downloadserenity-a3fb19fe9c7f810bc997977eadb6ddb63e45cf93.zip
Use fooEvent() type names for the virtual event handlers.
Diffstat (limited to 'Widgets/ClockWidget.cpp')
-rw-r--r--Widgets/ClockWidget.cpp4
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)