mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
ProcessManager: Rename "widget" to "process_table_container".
This commit is contained in:
parent
5d83a049c2
commit
cd3463d2e3
1 changed files with 8 additions and 8 deletions
|
@ -28,8 +28,8 @@ int main(int argc, char** argv)
|
|||
|
||||
auto* tabwidget = new GTabWidget(keeper);
|
||||
|
||||
auto* widget = new GWidget(nullptr);
|
||||
tabwidget->add_widget("Processes", widget);
|
||||
auto* process_table_container = new GWidget(nullptr);
|
||||
tabwidget->add_widget("Processes", process_table_container);
|
||||
|
||||
auto* graphs_container = new GWidget;
|
||||
graphs_container->set_fill_with_background_color(true);
|
||||
|
@ -64,14 +64,14 @@ int main(int argc, char** argv)
|
|||
|
||||
tabwidget->add_widget("Graphs", graphs_container);
|
||||
|
||||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
widget->layout()->set_margins({ 4, 0, 4, 4 });
|
||||
widget->layout()->set_spacing(0);
|
||||
process_table_container->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
process_table_container->layout()->set_margins({ 4, 0, 4, 4 });
|
||||
process_table_container->layout()->set_spacing(0);
|
||||
|
||||
auto* toolbar = new GToolBar(widget);
|
||||
auto* toolbar = new GToolBar(process_table_container);
|
||||
toolbar->set_has_frame(false);
|
||||
auto* process_table_view = new ProcessTableView(*cpu_graph, widget);
|
||||
auto* memory_stats_widget = new MemoryStatsWidget(*memory_graph, widget);
|
||||
auto* process_table_view = new ProcessTableView(*cpu_graph, process_table_container);
|
||||
auto* memory_stats_widget = new MemoryStatsWidget(*memory_graph, process_table_container);
|
||||
|
||||
auto* refresh_timer = new CTimer(1000, [&] {
|
||||
process_table_view->refresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue