From 9fa21fa5852fc9b7605d953a3e9f8a9e8bd28864 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Mar 2019 17:19:56 +0100 Subject: LibGUI: Add a GPainter class that inherits from Painter. This gets rid of the last little piece of LibGUI knowledge in Painter. --- LibGUI/GWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LibGUI/GWidget.cpp') diff --git a/LibGUI/GWidget.cpp b/LibGUI/GWidget.cpp index f78ec48ebf..e22dd03b59 100644 --- a/LibGUI/GWidget.cpp +++ b/LibGUI/GWidget.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include @@ -85,13 +85,13 @@ void GWidget::handle_paint_event(GPaintEvent& event) { ASSERT(is_visible()); if (fill_with_background_color()) { - Painter painter(*this); + GPainter painter(*this); painter.fill_rect(event.rect(), background_color()); } else { #ifdef DEBUG_WIDGET_UNDERDRAW // FIXME: This is a bit broken. // If the widget is not opaque, let's not mess it up with debugging color. - Painter painter(*this); + GPainter painter(*this); painter.fill_rect(rect(), Color::Red); #endif } -- cgit v1.2.3