summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-03-24 13:30:52 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 12:21:05 +0200
commit7af87e8e6ba5fee7fe486cf97f9a5e8d40b3d483 (patch)
treee27d982658bbcd1212f92e3f4aec3f15a1cdf9be /Userland/Applications/SystemMonitor/ThreadStackWidget.cpp
parent452bbcaa84b364cb76e99c46950ad2bedf0ca7be (diff)
downloadserenity-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.cpp7
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());
}
+
+}