1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

SystemMonitor: Move NetworkStatisticsWidget into namespace + register it

We don't want to clobber the global namespace with registered widgets.
This commit is contained in:
kleines Filmröllchen 2022-03-18 23:10:33 +01:00 committed by Andreas Kling
parent 7e34b88ed4
commit 6d00932612
3 changed files with 11 additions and 1 deletions

View file

@ -13,6 +13,10 @@
#include <LibGUI/TableView.h>
#include <LibGfx/Painter.h>
REGISTER_WIDGET(SystemMonitor, NetworkStatisticsWidget)
namespace SystemMonitor {
NetworkStatisticsWidget::NetworkStatisticsWidget()
{
on_first_show = [this](auto&) {
@ -118,3 +122,5 @@ void NetworkStatisticsWidget::update_models()
m_tcp_socket_model->update();
m_udp_socket_model->update();
}
}