mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
- removed ETA & DL speed columns in finished torrents list
This commit is contained in:
parent
ab4ad0b114
commit
cf2bc1e980
4 changed files with 7 additions and 6 deletions
3
TODO
3
TODO
|
@ -47,5 +47,4 @@
|
||||||
- Improve ratio display / calculation / saving / per torrent...
|
- Improve ratio display / calculation / saving / per torrent...
|
||||||
- Use buttonboxes when possible
|
- Use buttonboxes when possible
|
||||||
- Display the sum of the size of the selected files in the torrent instead of the whole torrent size in download list
|
- Display the sum of the size of the selected files in the torrent instead of the whole torrent size in download list
|
||||||
- Sorting in Download Status column should be smarter than just an alphabetical sort
|
- Sorting in Download Status column should be smarter than just an alphabetical sort
|
||||||
- remove ETA from finished list
|
|
|
@ -45,7 +45,7 @@ class DLListDelegate: public QAbstractItemDelegate {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DLListDelegate(QObject *parent=0) : QAbstractItemDelegate(parent){}
|
DLListDelegate(QObject *parent) : QAbstractItemDelegate(parent){}
|
||||||
|
|
||||||
~DLListDelegate(){}
|
~DLListDelegate(){}
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,10 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession){
|
||||||
finishedListModel->setHeaderData(STATUS, Qt::Horizontal, tr("Status"));
|
finishedListModel->setHeaderData(STATUS, Qt::Horizontal, tr("Status"));
|
||||||
finishedListModel->setHeaderData(ETA, Qt::Horizontal, tr("ETA", "i.e: Estimated Time of Arrival / Time left"));
|
finishedListModel->setHeaderData(ETA, Qt::Horizontal, tr("ETA", "i.e: Estimated Time of Arrival / Time left"));
|
||||||
finishedList->setModel(finishedListModel);
|
finishedList->setModel(finishedListModel);
|
||||||
// Hide hash column
|
// Hide ETA & hash column
|
||||||
finishedList->hideColumn(HASH);
|
finishedList->hideColumn(HASH);
|
||||||
|
finishedList->hideColumn(ETA);
|
||||||
|
finishedList->hideColumn(DLSPEED);
|
||||||
// Load last columns width for download list
|
// Load last columns width for download list
|
||||||
if(!loadColWidthFinishedList()){
|
if(!loadColWidthFinishedList()){
|
||||||
finishedList->header()->resizeSection(0, 200);
|
finishedList->header()->resizeSection(0, 200);
|
||||||
|
@ -51,7 +53,7 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession){
|
||||||
finishedList->header()->setClickable(true);
|
finishedList->header()->setClickable(true);
|
||||||
finishedList->header()->setSortIndicatorShown(true);
|
finishedList->header()->setSortIndicatorShown(true);
|
||||||
connect(finishedList->header(), SIGNAL(sectionPressed(int)), this, SLOT(sortFinishedList(int)));
|
connect(finishedList->header(), SIGNAL(sectionPressed(int)), this, SLOT(sortFinishedList(int)));
|
||||||
finishedListDelegate = new DLListDelegate();
|
finishedListDelegate = new DLListDelegate(finishedList);
|
||||||
finishedList->setItemDelegate(finishedListDelegate);
|
finishedList->setItemDelegate(finishedListDelegate);
|
||||||
connect(finishedList, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayFinishedListMenu(const QPoint&)));
|
connect(finishedList, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayFinishedListMenu(const QPoint&)));
|
||||||
connect(finishedList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(propertiesSelection()));
|
connect(finishedList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(propertiesSelection()));
|
||||||
|
|
|
@ -126,7 +126,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
|
||||||
DLListModel->setHeaderData(STATUS, Qt::Horizontal, tr("Status"));
|
DLListModel->setHeaderData(STATUS, Qt::Horizontal, tr("Status"));
|
||||||
DLListModel->setHeaderData(ETA, Qt::Horizontal, tr("ETA", "i.e: Estimated Time of Arrival / Time left"));
|
DLListModel->setHeaderData(ETA, Qt::Horizontal, tr("ETA", "i.e: Estimated Time of Arrival / Time left"));
|
||||||
downloadList->setModel(DLListModel);
|
downloadList->setModel(DLListModel);
|
||||||
DLDelegate = new DLListDelegate();
|
DLDelegate = new DLListDelegate(downloadList);
|
||||||
downloadList->setItemDelegate(DLDelegate);
|
downloadList->setItemDelegate(DLDelegate);
|
||||||
// Hide hash column
|
// Hide hash column
|
||||||
downloadList->hideColumn(HASH);
|
downloadList->hideColumn(HASH);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue