mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
Use fooEvent() type names for the virtual event handlers.
This commit is contained in:
parent
dfb70ed234
commit
a3fb19fe9c
20 changed files with 84 additions and 84 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue