LibGUI: Add a GPainter class that inherits from Painter.

This gets rid of the last little piece of LibGUI knowledge in Painter.
This commit is contained in:
Andreas Kling
2019-03-28 17:19:56 +01:00
parent 326c6fd607
commit 9fa21fa585
27 changed files with 75 additions and 78 deletions

View File

@@ -1,6 +1,6 @@
#include <LibGUI/GFrame.h>
#include <LibGUI/GStyle.h>
#include <SharedGraphics/Painter.h>
#include <LibGUI/GPainter.h>
GFrame::GFrame(GWidget* parent)
: GWidget(parent)
@@ -16,7 +16,7 @@ void GFrame::paint_event(GPaintEvent& event)
if (m_shape == Shape::NoFrame)
return;
Painter painter(*this);
GPainter painter(*this);
painter.set_clip_rect(event.rect());
auto rect = this->rect();