mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibGUI: Remove parent parameter to GUI::Widget constructor
This commit is contained in:
parent
4ce28c32d1
commit
c5d913970a
114 changed files with 207 additions and 313 deletions
|
@ -28,9 +28,8 @@
|
|||
#include "Profile.h"
|
||||
#include <LibGUI/Painter.h>
|
||||
|
||||
ProfileTimelineWidget::ProfileTimelineWidget(Profile& profile, GUI::Widget* parent)
|
||||
: GUI::Frame(parent)
|
||||
, m_profile(profile)
|
||||
ProfileTimelineWidget::ProfileTimelineWidget(Profile& profile)
|
||||
: m_profile(profile)
|
||||
{
|
||||
set_background_color(Color::White);
|
||||
set_fill_with_background_color(true);
|
||||
|
|
|
@ -39,7 +39,7 @@ private:
|
|||
virtual void mousemove_event(GUI::MouseEvent&) override;
|
||||
virtual void mouseup_event(GUI::MouseEvent&) override;
|
||||
|
||||
ProfileTimelineWidget(Profile&, GUI::Widget* parent);
|
||||
explicit ProfileTimelineWidget(Profile&);
|
||||
|
||||
u64 timestamp_at_x(int x) const;
|
||||
|
||||
|
|
|
@ -62,9 +62,9 @@ int main(int argc, char** argv)
|
|||
main_widget->set_fill_with_background_color(true);
|
||||
main_widget->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
|
||||
auto timeline_widget = ProfileTimelineWidget::construct(*profile, main_widget);
|
||||
auto timeline_widget = main_widget->add<ProfileTimelineWidget>(*profile);
|
||||
|
||||
auto tree_view = GUI::TreeView::construct(main_widget);
|
||||
auto tree_view = main_widget->add<GUI::TreeView>();
|
||||
tree_view->set_headers_visible(true);
|
||||
tree_view->set_size_columns_to_fit_content(true);
|
||||
tree_view->set_model(profile->model());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue