mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
SystemMonitor: Move process window to GML
Extra stuff done in this commit to facilitate the above (if you want to really push my commit count, ask for more atomicisation): - Register a bunch of widgets that are used in the process window. - Allow setting the pid after the fact for the process state widget.
This commit is contained in:
committed by
Andreas Kling
parent
452bbcaa84
commit
7af87e8e6b
Notes:
sideshowbarker
2024-07-17 14:34:21 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/7af87e8e6b Pull-request: https://github.com/SerenityOS/serenity/pull/13125
@@ -11,6 +11,10 @@
|
||||
#include <LibGUI/SortingProxyModel.h>
|
||||
#include <LibGUI/TableView.h>
|
||||
|
||||
REGISTER_WIDGET(SystemMonitor, ProcessFileDescriptorMapWidget)
|
||||
|
||||
namespace SystemMonitor {
|
||||
|
||||
ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget()
|
||||
{
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
@@ -49,3 +53,5 @@ void ProcessFileDescriptorMapWidget::set_pid(pid_t pid)
|
||||
m_pid = pid;
|
||||
m_model->set_json_path(String::formatted("/proc/{}/fds", m_pid));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user