mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 11:17:36 +00:00
LibGUI: Convert GGroupBox to ObjectPtr
This commit is contained in:
parent
4f4438c04c
commit
83b5f6c11a
5 changed files with 10 additions and 9 deletions
|
@ -66,7 +66,7 @@ int main(int argc, char** argv)
|
|||
graphs_container->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
graphs_container->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto* cpu_graph_group_box = new GGroupBox("CPU usage", graphs_container);
|
||||
auto cpu_graph_group_box = GGroupBox::construct("CPU usage", graphs_container);
|
||||
cpu_graph_group_box->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
cpu_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
cpu_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
|
@ -79,7 +79,7 @@ int main(int argc, char** argv)
|
|||
return String::format("%d%%", value);
|
||||
};
|
||||
|
||||
auto* memory_graph_group_box = new GGroupBox("Memory usage", graphs_container);
|
||||
auto memory_graph_group_box = GGroupBox::construct("Memory usage", graphs_container);
|
||||
memory_graph_group_box->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
memory_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
memory_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue