Browse Source

- Updated torrent state icons

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
8d59f3c4e1
  1. BIN
      src/Icons/oxygen/mail-queue.png
  2. BIN
      src/Icons/oxygen/run-build.png
  3. 6
      src/TransferListWidget.cpp
  4. 2
      src/icons.qrc

BIN
src/Icons/oxygen/mail-queue.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

BIN
src/Icons/oxygen/run-build.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

6
src/TransferListWidget.cpp

@ -186,10 +186,10 @@ void TransferListWidget::updateTorrent(int row) { @@ -186,10 +186,10 @@ void TransferListWidget::updateTorrent(int row) {
listModel->setData(listModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(hash)));
if(h.is_queued()) {
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) {
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/time.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/run-build.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, PROGRESS), QVariant((double)h.progress()));
}else {
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/queued.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/mail-queued.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, ETA), QVariant((qlonglong)-1));
}
// Reset speeds and seeds/leech
@ -209,7 +209,7 @@ void TransferListWidget::updateTorrent(int row) { @@ -209,7 +209,7 @@ void TransferListWidget::updateTorrent(int row) {
case torrent_status::checking_files:
case torrent_status::queued_for_checking:
case torrent_status::checking_resume_data:
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/time.png"))), Qt::DecorationRole);
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/run-build.png"))), Qt::DecorationRole);
//setRowColor(row, QString::fromUtf8("grey"));
break;
case torrent_status::downloading:

2
src/icons.qrc

@ -68,6 +68,7 @@ @@ -68,6 +68,7 @@
<file>Icons/flags/italy.png</file>
<file>Icons/flags/south_korea.png</file>
<file>Icons/flags/japan.png</file>
<file>Icons/oxygen/mail-queue.png</file>
<file>Icons/oxygen/view-refresh.png</file>
<file>Icons/oxygen/file.png</file>
<file>Icons/oxygen/mail-folder-inbox.png</file>
@ -76,6 +77,7 @@ @@ -76,6 +77,7 @@
<file>Icons/oxygen/folder-new.png</file>
<file>Icons/oxygen/folder-remote.png</file>
<file>Icons/oxygen/edit-paste.png</file>
<file>Icons/oxygen/run-build.png</file>
<file>Icons/oxygen/proxy.png</file>
<file>Icons/oxygen/log.png</file>
<file>Icons/oxygen/unavailable.png</file>

Loading…
Cancel
Save