Browse Source

- Priority column fixes

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
4e05b62bbe
  1. 6
      src/FinishedTorrents.cpp
  2. 4
      src/downloadingTorrents.cpp

6
src/FinishedTorrents.cpp

@ -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

4
src/downloadingTorrents.cpp

@ -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

Loading…
Cancel
Save