mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Merge pull request #12458 from jagannatharjun/log
Convert the Log widget to use custom View/Model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user