mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Userspace: Use Core::Object::add() when building interfaces
This commit is contained in:
@@ -35,10 +35,10 @@ ProcessStacksWidget::ProcessStacksWidget(GUI::Widget* parent)
|
||||
{
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_stacks_editor = GUI::TextEditor::construct(GUI::TextEditor::Type::MultiLine, this);
|
||||
m_stacks_editor = add<GUI::TextEditor>();
|
||||
m_stacks_editor->set_readonly(true);
|
||||
|
||||
m_timer = Core::Timer::construct(1000, [this] { refresh(); }, this);
|
||||
m_timer = add<Core::Timer>(1000, [this] { refresh(); });
|
||||
}
|
||||
|
||||
ProcessStacksWidget::~ProcessStacksWidget()
|
||||
|
||||
Reference in New Issue
Block a user