1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

Use fooEvent() type names for the virtual event handlers.

This commit is contained in:
Andreas Kling 2018-10-13 22:51:50 +02:00
parent dfb70ed234
commit a3fb19fe9c
20 changed files with 84 additions and 84 deletions

View file

@ -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)