Change log to be a QMainWindow
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#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;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QHash>
|
||||
|
||||
namespace Ui {
|
||||
class ViewLogDialog;
|
||||
}
|
||||
|
||||
class OtherLogsPage;
|
||||
|
||||
class ViewLogDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ViewLogDialog(QWidget* parent = nullptr);
|
||||
~ViewLogDialog();
|
||||
|
||||
private:
|
||||
Ui::ViewLogDialog* ui;
|
||||
OtherLogsPage* m_page;
|
||||
};
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ViewLogDialog</class>
|
||||
<widget class="QDialog" name="ViewLogDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>825</width>
|
||||
<height>782</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>View Launcher Logs</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Close</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
Reference in New Issue
Block a user