mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
UI/Qt: Replace the Task Manager window with about:processes
This commit is contained in:
parent
67a1dd72db
commit
45d8cd5c9f
Notes:
github-actions[bot]
2025-03-19 14:04:21 +00:00
Author: https://github.com/trflynn89
Commit: 45d8cd5c9f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3967
Reviewed-by: https://github.com/shannonbooth
7 changed files with 3 additions and 114 deletions
|
@ -9,7 +9,6 @@
|
|||
#include <UI/Qt/Application.h>
|
||||
#include <UI/Qt/Settings.h>
|
||||
#include <UI/Qt/StringUtils.h>
|
||||
#include <UI/Qt/TaskManagerWindow.h>
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QFileOpenEvent>
|
||||
|
@ -26,10 +25,7 @@ void Application::create_platform_options(WebView::BrowserOptions&, WebView::Web
|
|||
web_content_options.config_path = Settings::the()->directory();
|
||||
}
|
||||
|
||||
Application::~Application()
|
||||
{
|
||||
close_task_manager_window();
|
||||
}
|
||||
Application::~Application() = default;
|
||||
|
||||
bool Application::event(QEvent* event)
|
||||
{
|
||||
|
@ -52,25 +48,6 @@ bool Application::event(QEvent* event)
|
|||
return QApplication::event(event);
|
||||
}
|
||||
|
||||
void Application::show_task_manager_window()
|
||||
{
|
||||
if (!m_task_manager_window) {
|
||||
m_task_manager_window = new TaskManagerWindow(nullptr);
|
||||
}
|
||||
m_task_manager_window->show();
|
||||
m_task_manager_window->activateWindow();
|
||||
m_task_manager_window->raise();
|
||||
}
|
||||
|
||||
void Application::close_task_manager_window()
|
||||
{
|
||||
if (m_task_manager_window) {
|
||||
m_task_manager_window->close();
|
||||
delete m_task_manager_window;
|
||||
m_task_manager_window = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
BrowserWindow& Application::new_window(Vector<URL::URL> const& initial_urls, BrowserWindow::IsPopupWindow is_popup_window, Tab* parent_tab, Optional<u64> page_index)
|
||||
{
|
||||
auto* window = new BrowserWindow(initial_urls, is_popup_window, parent_tab, move(page_index));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue