- Updated Transfer tab icon

- Fix display of priority for seeding torrents
This commit is contained in:
Christophe Dumez 2009-11-08 08:38:07 +00:00
parent 23d1aa7691
commit c818c2dae6
4 changed files with 7 additions and 2 deletions

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

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

View file

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