SystemMonitor: Make all tabs except the process table lazily loaded

We now use GLazyWidget for all the secondary tabs, which makes the
program start up way faster than before.

There's a noticeable delay when you click on the "PCI Devices" tab
for the first time, but that's definitely better than always eating
that delay before seeing a window at all. :^)
This commit is contained in:
Andreas Kling 2019-10-02 20:26:19 +02:00
commit 9da121f837
Notes: sideshowbarker 2024-07-19 11:51:15 +09:00
9 changed files with 253 additions and 201 deletions

View file

@ -1,11 +1,11 @@
#pragma once
#include <LibCore/CTimer.h>
#include <LibGUI/GWidget.h>
#include <LibGUI/GLazyWidget.h>
class GTableView;
class NetworkStatisticsWidget final : public GWidget {
class NetworkStatisticsWidget final : public GLazyWidget {
C_OBJECT(NetworkStatisticsWidget)
public:
virtual ~NetworkStatisticsWidget() override;