mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 05:16:59 +03:00
Use separate window for viewing logs
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
1aa8d7bc13
commit
e4a801fdf7
8 changed files with 94 additions and 16 deletions
21
launcher/ui/dialogs/ViewLogDialog.cpp
Normal file
21
launcher/ui/dialogs/ViewLogDialog.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "ViewLogDialog.h"
|
||||
#include "ui_ViewLogDialog.h"
|
||||
|
||||
#include "ui/pages/instance/OtherLogsPage.h"
|
||||
|
||||
ViewLogDialog::ViewLogDialog(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::ViewLogDialog)
|
||||
, m_page(new OtherLogsPage("launcher-logs", tr("Launcher Logs"), "Launcher-Logs", nullptr, parent))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->verticalLayout->insertWidget(0, m_page);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
m_page->opened();
|
||||
}
|
||||
|
||||
ViewLogDialog::~ViewLogDialog()
|
||||
{
|
||||
m_page->closed();
|
||||
delete ui;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue