diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 17:02:54 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 17:02:54 +0100 |
commit | bac9aa90ddb6a31fab75fc26c3f0bed2df04b5cd (patch) | |
tree | ef85fa17ca0c53cbe7e760a504d3fecd70a5998b /Widgets/Label.cpp | |
parent | 959ef2e681ee46f6556e89f125b1d0652a065740 (diff) | |
download | serenity-bac9aa90ddb6a31fab75fc26c3f0bed2df04b5cd.zip |
Update Painter class to the new coding style.
Diffstat (limited to 'Widgets/Label.cpp')
-rw-r--r-- | Widgets/Label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |