Change log to be a QMainWindow
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "tools/GenericProfiler.h"
|
||||
#include "ui/InstanceWindow.h"
|
||||
#include "ui/MainWindow.h"
|
||||
#include "ui/ViewLogWindow.h"
|
||||
|
||||
#include "ui/dialogs/ProgressDialog.h"
|
||||
#include "ui/instanceview/AccessibleInstanceView.h"
|
||||
@@ -1691,6 +1692,20 @@ MainWindow* Application::showMainWindow(bool minimized)
|
||||
return m_mainWindow;
|
||||
}
|
||||
|
||||
ViewLogWindow* Application::showLogWindow()
|
||||
{
|
||||
if (m_viewLogWindow) {
|
||||
m_viewLogWindow->setWindowState(m_viewLogWindow->windowState() & ~Qt::WindowMinimized);
|
||||
m_viewLogWindow->raise();
|
||||
m_viewLogWindow->activateWindow();
|
||||
} else {
|
||||
m_viewLogWindow = new ViewLogWindow();
|
||||
connect(m_viewLogWindow, &ViewLogWindow::isClosing, this, &Application::on_windowClose);
|
||||
m_openWindows++;
|
||||
}
|
||||
return m_viewLogWindow;
|
||||
}
|
||||
|
||||
InstanceWindow* Application::showInstanceWindow(InstancePtr instance, QString page)
|
||||
{
|
||||
if (!instance)
|
||||
|
||||
Reference in New Issue
Block a user