summaryrefslogtreecommitdiff
path: root/Widgets/CheckBox.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-12 17:02:54 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-12 17:02:54 +0100
commitbac9aa90ddb6a31fab75fc26c3f0bed2df04b5cd (patch)
treeef85fa17ca0c53cbe7e760a504d3fecd70a5998b /Widgets/CheckBox.cpp
parent959ef2e681ee46f6556e89f125b1d0652a065740 (diff)
downloadserenity-bac9aa90ddb6a31fab75fc26c3f0bed2df04b5cd.zip
Update Painter class to the new coding style.
Diffstat (limited to 'Widgets/CheckBox.cpp')
-rw-r--r--Widgets/CheckBox.cpp6
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());
}
}