mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
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. :^)
20 lines
477 B
C++
20 lines
477 B
C++
#pragma once
|
|
|
|
#include <LibCore/CTimer.h>
|
|
#include <LibGUI/GLazyWidget.h>
|
|
|
|
class GTableView;
|
|
|
|
class NetworkStatisticsWidget final : public GLazyWidget {
|
|
C_OBJECT(NetworkStatisticsWidget)
|
|
public:
|
|
virtual ~NetworkStatisticsWidget() override;
|
|
|
|
private:
|
|
explicit NetworkStatisticsWidget(GWidget* parent = nullptr);
|
|
void update_models();
|
|
|
|
RefPtr<GTableView> m_adapter_table_view;
|
|
RefPtr<GTableView> m_socket_table_view;
|
|
RefPtr<CTimer> m_update_timer;
|
|
};
|