1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

SystemMonitor: Register GraphWidget's stack_values property

This commit is contained in:
kleines Filmröllchen 2022-03-23 01:31:21 +01:00 committed by Andreas Kling
parent a7d9d416d5
commit 98ed18124d
2 changed files with 15 additions and 2 deletions

View file

@ -6,6 +6,7 @@
*/
#include "GraphWidget.h"
#include <LibCore/Object.h>
#include <LibGUI/Application.h>
#include <LibGUI/Painter.h>
#include <LibGfx/Font.h>
@ -17,6 +18,17 @@ REGISTER_WIDGET(SystemMonitor, GraphWidget)
namespace SystemMonitor {
GraphWidget::GraphWidget()
{
REGISTER_BOOL_PROPERTY("stack_values", stack_values, set_stack_values);
}
void GraphWidget::set_stack_values(bool stack_values)
{
m_stack_values = stack_values;
update();
}
void GraphWidget::add_value(Vector<u64, 1>&& value)
{
m_values.enqueue(move(value));