mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
11039085d0
Previously, the browser would crash when opening a task manager window with the `--enable-qt-networking` flag set because we were passing the default WebContentOptions to the underlying WebContentView.
31 lines
566 B
C++
31 lines
566 B
C++
/*
|
|
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "WebContentView.h"
|
|
#include <QTimer>
|
|
#include <QWidget>
|
|
|
|
namespace Ladybird {
|
|
|
|
class TaskManagerWindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TaskManagerWindow(QWidget* parent, WebContentOptions const&);
|
|
|
|
private:
|
|
virtual void showEvent(QShowEvent*) override;
|
|
virtual void hideEvent(QHideEvent*) override;
|
|
|
|
void update_statistics();
|
|
|
|
WebContentView* m_web_view { nullptr };
|
|
QTimer m_update_timer;
|
|
};
|
|
|
|
}
|