diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-03-24 13:30:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-03 12:21:05 +0200 |
commit | 7af87e8e6ba5fee7fe486cf97f9a5e8d40b3d483 (patch) | |
tree | e27d982658bbcd1212f92e3f4aec3f15a1cdf9be /Userland/Applications/SystemMonitor/ThreadStackWidget.cpp | |
parent | 452bbcaa84b364cb76e99c46950ad2bedf0ca7be (diff) | |
download | serenity-7af87e8e6ba5fee7fe486cf97f9a5e8d40b3d483.zip |
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.
Diffstat (limited to 'Userland/Applications/SystemMonitor/ThreadStackWidget.cpp')
-rw-r--r-- | Userland/Applications/SystemMonitor/ThreadStackWidget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp b/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp index d63d7660ee..998cb50868 100644 --- a/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp +++ b/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp @@ -9,9 +9,14 @@ #include <LibCore/Timer.h> #include <LibGUI/BoxLayout.h> #include <LibGUI/Model.h> +#include <LibGUI/Widget.h> #include <LibSymbolication/Symbolication.h> #include <LibThreading/BackgroundAction.h> +REGISTER_WIDGET(SystemMonitor, ThreadStackWidget) + +namespace SystemMonitor { + class ThreadStackModel final : public GUI::Model { enum Column { @@ -127,3 +132,5 @@ void ThreadStackWidget::custom_event(Core::CustomEvent& event) auto& completion_event = verify_cast<CompletionEvent>(event); verify_cast<ThreadStackModel>(m_stack_table->model())->set_symbols(completion_event.symbols()); } + +} |