Add option to disable torrent state colors

PR #22976.
This commit is contained in:
Vladimir Golovnev
2025-07-14 11:40:53 +03:00
committed by GitHub
parent 66f3cf7e67
commit e1ebf8374e
9 changed files with 65 additions and 22 deletions

View File

@@ -130,14 +130,14 @@ namespace
TransferListWidget::TransferListWidget(IGUIApplication *app, QWidget *parent)
: GUIApplicationComponent(app, parent)
, m_listModel {new TransferListModel {this}}
, m_sortFilterModel {new TransferListSortModel {this}}
, m_listModel {new TransferListModel(this)}
, m_sortFilterModel {new TransferListSortModel(this)}
{
// Load settings
const bool columnLoaded = loadSettings();
// Create and apply delegate
setItemDelegate(new TransferListDelegate {this});
setItemDelegate(new TransferListDelegate(this));
m_sortFilterModel->setDynamicSortFilter(true);
m_sortFilterModel->setSourceModel(m_listModel);