Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ MainWindow::MainWindow(IGUIApplication *app, const WindowState initialState, con
#endif
tr("Transfers"));
// Filter types
const QList<TransferListModel::Column> filterTypes = {TransferListModel::Column::TR_NAME, TransferListModel::Column::TR_SAVE_PATH};
const QList<TransferListModel::Column> filterTypes = {TransferListModel::Column::TR_NAME, TransferListModel::Column::TR_SAVE_PATH, TransferListModel::Column::TR_COMMENT};
for (const TransferListModel::Column type : filterTypes)
{
const QString typeName = m_transferListWidget->getSourceModel()->headerData(type, Qt::Horizontal, Qt::DisplayRole).value<QString>();
Expand Down
3 changes: 3 additions & 0 deletions src/gui/transferlistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ QVariant TransferListModel::headerData(const int section, const Qt::Orientation
case TR_AMOUNT_LEFT: return tr("Remaining", "Amount of data left to download (e.g. in MB)");
case TR_TIME_ELAPSED: return tr("Time Active", "Time (duration) the torrent is active (not stopped)");
case TR_SAVE_PATH: return tr("Save Path", "Torrent save path");
case TR_COMMENT: return tr("Commentary", "Torrent commentary");
case TR_DOWNLOAD_PATH: return tr("Incomplete Save Path", "Torrent incomplete save path");
case TR_COMPLETED: return tr("Completed", "Amount of data completed (e.g. in MB)");
case TR_RATIO_LIMIT: return tr("Ratio Limit", "Upload share ratio limit");
Expand Down Expand Up @@ -423,6 +424,8 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
return timeElapsedString(torrent->activeTime(), torrent->finishedTime());
case TR_SAVE_PATH:
return torrent->savePath().toString();
case TR_COMMENT:
return torrent->comment();
case TR_DOWNLOAD_PATH:
return torrent->downloadPath().toString();
case TR_COMPLETED:
Expand Down
1 change: 1 addition & 0 deletions src/gui/transferlistmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class TransferListModel final : public QAbstractListModel
TR_INFOHASH_V2,
TR_REANNOUNCE,
TR_PRIVATE,
TR_COMMENT,

NB_COLUMNS
};
Expand Down
Loading