mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-03 19:37:45 -04:00
26 lines
670 B
C++
26 lines
670 B
C++
#include <QCloseEvent>
|
|
|
|
#include "ViewLogWindow.h"
|
|
|
|
#include "ui/pages/instance/OtherLogsPage.h"
|
|
|
|
ViewLogWindow::ViewLogWindow(QWidget* parent)
|
|
: QMainWindow(parent), m_page(new OtherLogsPage("launcher-logs", tr("Launcher Logs"), "Launcher-Logs", nullptr, parent))
|
|
{
|
|
setAttribute(Qt::WA_DeleteOnClose);
|
|
setWindowIcon(APPLICATION->getThemedIcon("log"));
|
|
setWindowTitle(tr("View Launcher Logs"));
|
|
setCentralWidget(m_page);
|
|
setMinimumSize(m_page->size());
|
|
setContentsMargins(0, 0, 0, 0);
|
|
m_page->opened();
|
|
show();
|
|
}
|
|
|
|
void ViewLogWindow::closeEvent(QCloseEvent* event)
|
|
{
|
|
m_page->closed();
|
|
emit isClosing();
|
|
event->accept();
|
|
}
|