1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

- Priority column fixes

This commit is contained in:
Christophe Dumez 2008-08-19 00:10:56 +00:00
parent 9d366c8c7d
commit 4e05b62bbe
2 changed files with 9 additions and 1 deletions

View File

@ -105,6 +105,10 @@ void FinishedTorrents::notifyTorrentDoubleClicked(const QModelIndex& index) {
void FinishedTorrents::hidePriorityColumn(bool hide) { void FinishedTorrents::hidePriorityColumn(bool hide) {
finishedList->setColumnHidden(F_PRIORITY, hide); finishedList->setColumnHidden(F_PRIORITY, hide);
if(hide)
getActionHoSCol(F_PRIORITY)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_cancel.png")));
else
getActionHoSCol(F_PRIORITY)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png")));
} }
void FinishedTorrents::addTorrent(QString hash){ void FinishedTorrents::addTorrent(QString hash){
@ -437,7 +441,7 @@ void FinishedTorrents::displayFinishedHoSMenu(const QPoint& pos){
} else { } else {
lastCol = F_RATIO; lastCol = F_RATIO;
} }
for(int i=0; i<=F_RATIO; i++) { for(int i=0; i<=lastCol; i++) {
hideshowColumn.addAction(getActionHoSCol(i)); hideshowColumn.addAction(getActionHoSCol(i));
} }
// Call menu // Call menu

View File

@ -396,6 +396,10 @@ void DownloadingTorrents::hideOrShowColumn(int index) {
void DownloadingTorrents::hidePriorityColumn(bool hide) { void DownloadingTorrents::hidePriorityColumn(bool hide) {
downloadList->setColumnHidden(PRIORITY, hide); downloadList->setColumnHidden(PRIORITY, hide);
if(hide)
getActionHoSCol(PRIORITY)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_cancel.png")));
else
getActionHoSCol(PRIORITY)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png")));
} }
// save the hidden columns in settings // save the hidden columns in settings