diff --git a/src/FinishedTorrents.cpp b/src/FinishedTorrents.cpp index a9630745d..3a7bb75c9 100644 --- a/src/FinishedTorrents.cpp +++ b/src/FinishedTorrents.cpp @@ -82,7 +82,6 @@ FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession) : par connect(actionHOSColUpSpeed, SIGNAL(triggered()), this, SLOT(hideOrShowColumnUpSpeed())); connect(actionHOSColLeechers, SIGNAL(triggered()), this, SLOT(hideOrShowColumnLeechers())); connect(actionHOSColRatio, SIGNAL(triggered()), this, SLOT(hideOrShowColumnRatio())); - connect(actionResizeAllColumns, SIGNAL(triggered()), this, SLOT(resetAllColumns())); } FinishedTorrents::~FinishedTorrents(){ @@ -398,7 +397,6 @@ void FinishedTorrents::displayFinishedHoSMenu(const QPoint& pos){ for(int i=0; i<=F_RATIO; i++) { hideshowColumn.addAction(getActionHoSCol(i)); } - hideshowColumn.addAction(actionResizeAllColumns); // Call menu hideshowColumn.exec(mapToGlobal(pos)+QPoint(10,55)); } @@ -469,15 +467,6 @@ void FinishedTorrents::hideOrShowColumnRatio() { hideOrShowColumn(F_RATIO); } -void FinishedTorrents::resetAllColumns() { - for(int i=0; icolumnCount()-1; i++) { - finishedList->setColumnHidden(i, false); - finishedList->resizeColumnToContents(i); - getActionHoSCol(i)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png"))); - } - finishedList->setColumnWidth(F_NAME,270); -} - // load the previous settings, and hide the columns bool FinishedTorrents::loadHiddenColumns() { bool loaded = false; diff --git a/src/FinishedTorrents.h b/src/FinishedTorrents.h index 9738faa8c..2b3f10927 100644 --- a/src/FinishedTorrents.h +++ b/src/FinishedTorrents.h @@ -73,7 +73,6 @@ class FinishedTorrents : public QWidget, public Ui::seeding { void hideOrShowColumnUpSpeed(); void hideOrShowColumnLeechers(); void hideOrShowColumnRatio(); - void resetAllColumns(); public slots: void addTorrent(QString hash); diff --git a/src/download.ui b/src/download.ui index 5ddc65b98..07d2c57b0 100644 --- a/src/download.ui +++ b/src/download.ui @@ -428,11 +428,6 @@ ETA - - - Resize all - - diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index fd7e5de36..1aecee420 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -107,7 +107,6 @@ DownloadingTorrents::DownloadingTorrents(QObject *parent, bittorrent *BTSession) connect(actionHOSColSeedersLeechers, SIGNAL(triggered()), this, SLOT(hideOrShowColumnSeedersLeechers())); connect(actionHOSColRatio, SIGNAL(triggered()), this, SLOT(hideOrShowColumnRatio())); connect(actionHOSColEta, SIGNAL(triggered()), this, SLOT(hideOrShowColumnEta())); - connect(actionResizeAllColumns, SIGNAL(triggered()), this, SLOT(resetAllColumns())); // Set info Bar infos setInfoBar(tr("qBittorrent %1 started.", "e.g: qBittorrent v0.x started.").arg(QString::fromUtf8(""VERSION))); @@ -316,7 +315,6 @@ void DownloadingTorrents::displayDLHoSMenu(const QPoint& pos){ for(int i=0; i<=ETA; i++) { hideshowColumn.addAction(getActionHoSCol(i)); } - hideshowColumn.addAction(actionResizeAllColumns); // Call menu hideshowColumn.exec(mapToGlobal(pos)+QPoint(10,55)); } @@ -475,15 +473,6 @@ QAction* DownloadingTorrents::getActionHoSCol(int index) { } } -void DownloadingTorrents::resetAllColumns() { - for(int i=0; icolumnCount()-1; i++) { - downloadList->setColumnHidden(i, false); - downloadList->resizeColumnToContents(i); - getActionHoSCol(i)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png"))); - } - downloadList->setColumnWidth(NAME,270); -} - QStringList DownloadingTorrents::getSelectedTorrents(bool only_one) const{ QStringList res; QModelIndex index; diff --git a/src/downloadingTorrents.h b/src/downloadingTorrents.h index 45cb8fcec..9ad934d25 100644 --- a/src/downloadingTorrents.h +++ b/src/downloadingTorrents.h @@ -92,7 +92,6 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{ void hideOrShowColumnSeedersLeechers(); void hideOrShowColumnRatio(); void hideOrShowColumnEta(); - void resetAllColumns(); public slots: void updateDlList(); diff --git a/src/seeding.ui b/src/seeding.ui index 6c754fc10..1428bc6eb 100644 --- a/src/seeding.ui +++ b/src/seeding.ui @@ -131,11 +131,6 @@ Ratio - - - Resize All - -