ladybird/UI/Qt/TaskManagerWindow.h
2024-11-10 12:50:45 +01:00

32 lines
556 B
C++

/*
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <UI/Qt/WebContentView.h>
#include <QTimer>
#include <QWidget>
namespace Ladybird {
class TaskManagerWindow : public QWidget {
Q_OBJECT
public:
explicit TaskManagerWindow(QWidget* parent);
private:
virtual void showEvent(QShowEvent*) override;
virtual void hideEvent(QHideEvent*) override;
void update_statistics();
WebContentView* m_web_view { nullptr };
QTimer m_update_timer;
};
}