mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
Update Painter class to the new coding style.
This commit is contained in:
parent
959ef2e681
commit
bac9aa90dd
11 changed files with 96 additions and 97 deletions
|
@ -22,8 +22,8 @@ void ClockWidget::paintEvent(PaintEvent&)
|
|||
sprintf(timeBuf, "%02u:%02u:%02u ", tm.tm_hour, tm.tm_min, tm.tm_sec);
|
||||
|
||||
Painter painter(*this);
|
||||
painter.fillRect(rect(), Color::MidGray);
|
||||
painter.drawText(rect(), timeBuf, Painter::TextAlignment::Center, Color::Black);
|
||||
painter.fill_rect(rect(), Color::MidGray);
|
||||
painter.draw_text(rect(), timeBuf, Painter::TextAlignment::Center, Color::Black);
|
||||
}
|
||||
|
||||
void ClockWidget::timerEvent(TimerEvent&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue