mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr
This commit is contained in:
parent
4ea229accd
commit
93851c3832
25 changed files with 38 additions and 36 deletions
|
@ -8,7 +8,7 @@ ProcessStacksWidget::ProcessStacksWidget(GWidget* parent)
|
|||
{
|
||||
set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_stacks_editor = new GTextEditor(GTextEditor::Type::MultiLine, this);
|
||||
m_stacks_editor = GTextEditor::construct(GTextEditor::Type::MultiLine, this);
|
||||
m_stacks_editor->set_readonly(true);
|
||||
|
||||
m_timer = CTimer::create(1000, [this] { refresh(); }, this);
|
||||
|
|
|
@ -17,6 +17,6 @@ public:
|
|||
|
||||
private:
|
||||
pid_t m_pid { -1 };
|
||||
GTextEditor* m_stacks_editor { nullptr };
|
||||
ObjectPtr<GTextEditor> m_stacks_editor;
|
||||
ObjectPtr<CTimer> m_timer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue