Browse Source

- Updated Transfer tab icon

- Fix display of priority for seeding torrents
adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
c818c2dae6
  1. 2
      src/GUI.cpp
  2. BIN
      src/Icons/oxygen/folder-remote.png
  3. 6
      src/TransferListDelegate.h
  4. 1
      src/icons.qrc

2
src/GUI.cpp

@ -138,7 +138,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis @@ -138,7 +138,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
// Transfer List tab
transferList = new TransferListWidget(tabs, BTSession);
int index_tab = tabs->addTab(transferList, tr("Transfers"));
tabs->setTabIcon(index_tab, QIcon(QString::fromUtf8(":/Icons/skin/downloading.png")));
tabs->setTabIcon(index_tab, QIcon(QString::fromUtf8(":/Icons/oxygen/folder-remote.png")));
vboxLayout->addWidget(tabs);
// Transfer list slots

BIN
src/Icons/oxygen/folder-remote.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

6
src/TransferListDelegate.h

@ -88,8 +88,12 @@ public: @@ -88,8 +88,12 @@ public:
}
case PRIORITY: {
int priority = index.data().toInt();
if(priority >= 0)
if(priority >= 0) {
QItemDelegate::paint(painter, option, index);
} else {
QItemDelegate::drawBackground(painter, opt, index);
QItemDelegate::drawDisplay(painter, opt, opt.rect, "*");
}
break;
}
case PROGRESS:{

1
src/icons.qrc

@ -74,6 +74,7 @@ @@ -74,6 +74,7 @@
<file>Icons/oxygen/time.png</file>
<file>Icons/oxygen/edit-find.png</file>
<file>Icons/oxygen/folder-new.png</file>
<file>Icons/oxygen/folder-remote.png</file>
<file>Icons/oxygen/edit-paste.png</file>
<file>Icons/oxygen/proxy.png</file>
<file>Icons/oxygen/log.png</file>

Loading…
Cancel
Save