mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:45:06 +00:00
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:
parent
326c6fd607
commit
9fa21fa585
27 changed files with 75 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
|||
#include <LibGUI/GProgressBar.h>
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
||||
GProgressBar::GProgressBar(GWidget* parent)
|
||||
|
@ -32,7 +32,7 @@ void GProgressBar::set_range(int min, int max)
|
|||
|
||||
void GProgressBar::paint_event(GPaintEvent& event)
|
||||
{
|
||||
Painter painter(*this);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(event.rect());
|
||||
|
||||
// First we fill the entire widget with the gradient. This incurs a bit of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue