Merge pull request #12458 from jagannatharjun/log

Convert the Log widget to use custom View/Model
This commit is contained in:
Mike Tzou 2020-04-17 11:27:35 +08:00 committed by GitHub
commit a5fe96f793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 610 additions and 195 deletions

View file

@ -491,7 +491,7 @@ int MainWindow::executionLogMsgTypes() const
void MainWindow::setExecutionLogMsgTypes(const int value)
{
m_executionLog->showMsgTypes(static_cast<Log::MsgTypes>(value));
m_executionLog->setMessageTypes(static_cast<Log::MsgTypes>(value));
settings()->storeValue(KEY_EXECUTIONLOG_TYPES, value);
}
@ -1874,7 +1874,7 @@ void MainWindow::on_actionExecutionLogs_triggered(bool checked)
{
if (checked) {
Q_ASSERT(!m_executionLog);
m_executionLog = new ExecutionLogWidget(m_tabs, static_cast<Log::MsgType>(executionLogMsgTypes()));
m_executionLog = new ExecutionLogWidget(static_cast<Log::MsgType>(executionLogMsgTypes()), m_tabs);
#ifdef Q_OS_MACOS
m_tabs->addTab(m_executionLog, tr("Execution Log"));
#else