Browse Source

- Changed default icon from connecting to stalled since connecting state no longer exists

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
c536f24d55
  1. 6
      src/downloadingTorrents.cpp

6
src/downloadingTorrents.cpp

@ -172,7 +172,7 @@ void DownloadingTorrents::showPropertiesFromHash(QString hash) { @@ -172,7 +172,7 @@ void DownloadingTorrents::showPropertiesFromHash(QString hash) {
void DownloadingTorrents::resumeTorrent(QString hash){
int row = getRowFromHash(hash);
Q_ASSERT(row != -1);
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole);
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole);
setRowColor(row, QString::fromUtf8("grey"));
}
@ -598,7 +598,7 @@ void DownloadingTorrents::addTorrent(QString hash) { @@ -598,7 +598,7 @@ void DownloadingTorrents::addTorrent(QString hash) {
setRowColor(row, QString::fromUtf8("red"));
}else{
DLListModel->setData(DLListModel->index(row, PROGRESS), QVariant((double)h.progress()));
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole);
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole);
setRowColor(row, QString::fromUtf8("grey"));
}
++nbTorrents;
@ -804,7 +804,7 @@ void DownloadingTorrents::torrentAdded(QTorrentHandle& h) { @@ -804,7 +804,7 @@ void DownloadingTorrents::torrentAdded(QTorrentHandle& h) {
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/paused.png"))), Qt::DecorationRole);
setRowColor(row, QString::fromUtf8("red"));
}else{
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole);
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole);
setRowColor(row, QString::fromUtf8("grey"));
}
++nbTorrents;

Loading…
Cancel
Save