mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +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
Notes:
sideshowbarker
2024-07-19 14:54:59 +09:00
Author: https://github.com/awesomekling
Commit: 9fa21fa585
27 changed files with 75 additions and 78 deletions
|
@ -1,7 +1,7 @@
|
|||
#include <LibGUI/GTableView.h>
|
||||
#include <LibGUI/GModel.h>
|
||||
#include <LibGUI/GScrollBar.h>
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
#include <Kernel/KeyCode.h>
|
||||
|
||||
GTableView::GTableView(GWidget* parent)
|
||||
|
@ -100,7 +100,7 @@ void GTableView::paint_event(GPaintEvent& event)
|
|||
{
|
||||
GFrame::paint_event(event);
|
||||
|
||||
Painter painter(*this);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(frame_inner_rect());
|
||||
painter.set_clip_rect(event.rect());
|
||||
painter.save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue