mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Convert the Log widget to use custom View/Model
Co-authored-by: sledgehammer999 <hammered999@gmail.com>
This commit is contained in:
parent
59f99bb984
commit
fd89717330
14 changed files with 610 additions and 195 deletions
|
@ -487,7 +487,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);
|
||||
}
|
||||
|
||||
|
@ -1866,7 +1866,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue