mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 19:21:52 +00:00
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
Notes:
sideshowbarker
2024-07-19 09:41:33 +09:00
Author: https://github.com/awesomekling
Commit: c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -27,8 +27,8 @@
|
|||
#include "GraphWidget.h"
|
||||
#include <LibGUI/GPainter.h>
|
||||
|
||||
GraphWidget::GraphWidget(GWidget* parent)
|
||||
: GFrame(parent)
|
||||
GraphWidget::GraphWidget(GUI::Widget* parent)
|
||||
: GUI::Frame(parent)
|
||||
{
|
||||
set_frame_thickness(2);
|
||||
set_frame_shape(FrameShape::Container);
|
||||
|
@ -45,10 +45,10 @@ void GraphWidget::add_value(int value)
|
|||
update();
|
||||
}
|
||||
|
||||
void GraphWidget::paint_event(GPaintEvent& event)
|
||||
void GraphWidget::paint_event(GUI::PaintEvent& event)
|
||||
{
|
||||
GFrame::paint_event(event);
|
||||
GPainter painter(*this);
|
||||
GUI::Frame::paint_event(event);
|
||||
GUI::Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
painter.add_clip_rect(frame_inner_rect());
|
||||
painter.fill_rect(event.rect(), Color::Black);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue