diff options
Diffstat (limited to 'Widgets/CheckBox.cpp')
-rw-r--r-- | Widgets/CheckBox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Widgets/CheckBox.cpp b/Widgets/CheckBox.cpp index 8e36694245..637a391f49 100644 --- a/Widgets/CheckBox.cpp +++ b/Widgets/CheckBox.cpp @@ -85,11 +85,11 @@ void CheckBox::paintEvent(PaintEvent&) bitmapPosition.setX(2); bitmapPosition.setY(height() / 2 - bitmap->height() / 2 - 1); - painter.fillRect(rect(), backgroundColor()); - painter.drawBitmap(bitmapPosition, *bitmap, foregroundColor()); + painter.fill_rect(rect(), backgroundColor()); + painter.draw_bitmap(bitmapPosition, *bitmap, foregroundColor()); if (!caption().is_empty()) { - painter.drawText(textRect, caption(), Painter::TextAlignment::TopLeft, foregroundColor()); + painter.draw_text(textRect, caption(), Painter::TextAlignment::TopLeft, foregroundColor()); } } |