mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
FEATURE: Added "Amount downloaded/left" columns to transfer list
Fix bug in column display menu
This commit is contained in:
parent
3144bfebc7
commit
a640b08414
7 changed files with 21 additions and 3 deletions
|
@ -512,6 +512,8 @@ bool TransferListWidget::loadHiddenColumns() {
|
|||
setColumnHidden(TorrentModelItem::TR_UPLIMIT, true);
|
||||
setColumnHidden(TorrentModelItem::TR_DLLIMIT, true);
|
||||
setColumnHidden(TorrentModelItem::TR_TRACKER, true);
|
||||
setColumnHidden(TorrentModelItem::TR_AMOUNT_DOWNLOADED, true);
|
||||
setColumnHidden(TorrentModelItem::TR_AMOUNT_LEFT, true);
|
||||
}
|
||||
return loaded;
|
||||
}
|
||||
|
@ -521,7 +523,7 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){
|
|||
QMenu hideshowColumn(this);
|
||||
hideshowColumn.setTitle(tr("Column visibility"));
|
||||
QList<QAction*> actions;
|
||||
for(int i=0; i < listModel->rowCount(); ++i) {
|
||||
for(int i=0; i < listModel->columnCount(); ++i) {
|
||||
if(!BTSession->isQueueingEnabled() && i == TorrentModelItem::TR_PRIORITY) {
|
||||
actions.append(0);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue