mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +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
337 changed files with 5400 additions and 4816 deletions
|
@ -30,8 +30,8 @@
|
|||
#include <LibGUI/GPainter.h>
|
||||
#include <limits>
|
||||
|
||||
WaveWidget::WaveWidget(GWidget* parent, AudioEngine& audio_engine)
|
||||
: GFrame(parent)
|
||||
WaveWidget::WaveWidget(GUI::Widget* parent, AudioEngine& audio_engine)
|
||||
: GUI::Frame(parent)
|
||||
, m_audio_engine(audio_engine)
|
||||
{
|
||||
set_frame_thickness(2);
|
||||
|
@ -85,9 +85,9 @@ int WaveWidget::sample_to_y(int sample) const
|
|||
return y;
|
||||
}
|
||||
|
||||
void WaveWidget::paint_event(GPaintEvent& event)
|
||||
void WaveWidget::paint_event(GUI::PaintEvent& event)
|
||||
{
|
||||
GPainter painter(*this);
|
||||
GUI::Painter painter(*this);
|
||||
painter.fill_rect(frame_inner_rect(), Color::Black);
|
||||
painter.translate(frame_thickness(), frame_thickness());
|
||||
|
||||
|
@ -110,5 +110,5 @@ void WaveWidget::paint_event(GPaintEvent& event)
|
|||
prev_y = y;
|
||||
}
|
||||
|
||||
GFrame::paint_event(event);
|
||||
GUI::Frame::paint_event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue