mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:45:07 +00:00
Userspace: Use Core::Object::add() when building interfaces
This commit is contained in:
parent
7ec758773c
commit
3d20da9ee4
87 changed files with 403 additions and 438 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue