From bac9aa90ddb6a31fab75fc26c3f0bed2df04b5cd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Jan 2019 17:02:54 +0100 Subject: Update Painter class to the new coding style. --- Widgets/Label.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Widgets/Label.cpp') diff --git a/Widgets/Label.cpp b/Widgets/Label.cpp index e23544ae71..ac2896b793 100644 --- a/Widgets/Label.cpp +++ b/Widgets/Label.cpp @@ -21,9 +21,9 @@ void Label::setText(String&& text) void Label::paintEvent(PaintEvent&) { Painter painter(*this); - painter.fillRect({ 0, 0, width(), height() }, backgroundColor()); + painter.fill_rect({ 0, 0, width(), height() }, backgroundColor()); if (!text().is_empty()) - painter.drawText({ 4, 4, width(), height() }, text(), Painter::TextAlignment::TopLeft, foregroundColor()); + painter.draw_text({ 4, 4, width(), height() }, text(), Painter::TextAlignment::TopLeft, foregroundColor()); } void Label::mouseMoveEvent(MouseEvent& event) -- cgit v1.2.3