mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 02:58:12 +00:00
Move some more classes to the new coding style.
This commit is contained in:
parent
a2ec09bc20
commit
7750e6952b
20 changed files with 113 additions and 114 deletions
|
@ -59,7 +59,7 @@ void Button::paintEvent(PaintEvent&)
|
|||
if (!caption().is_empty()) {
|
||||
auto textRect = rect();
|
||||
if (m_beingPressed)
|
||||
textRect.moveBy(1, 1);
|
||||
textRect.move_by(1, 1);
|
||||
painter.draw_text(textRect, caption(), Painter::TextAlignment::Center, Color::Black);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue