mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
COSMETIC: Improved transfer speed display in peers list
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
|
||||||
- BUGFIX: Fix overwrite check when renaming a folder in a torrent
|
- BUGFIX: Fix overwrite check when renaming a folder in a torrent
|
||||||
- BUGFIX: Force a recheck after renaming files to avoid overwriting
|
- BUGFIX: Force a recheck after renaming files to avoid overwriting
|
||||||
|
- COSMETIC: Improved transfer speed display in peers list
|
||||||
|
|
||||||
* Wed Jan 20 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.1
|
* Wed Jan 20 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.1
|
||||||
- BUGFIX: Fix compilation with Qt4.4
|
- BUGFIX: Fix compilation with Qt4.4
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ public:
|
|||||||
case UP_SPEED:{
|
case UP_SPEED:{
|
||||||
QItemDelegate::drawBackground(painter, opt, index);
|
QItemDelegate::drawBackground(painter, opt, index);
|
||||||
double speed = index.data().toDouble();
|
double speed = index.data().toDouble();
|
||||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString::number(speed/1024., 'f', 1)+" "+tr("KiB/s"));
|
if (speed > 0.0)
|
||||||
|
QItemDelegate::drawDisplay(painter, opt, opt.rect, misc::friendlyUnit(speed)+tr("/s", "/second (i.e. per second)"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PROGRESS:{
|
case PROGRESS:{
|
||||||
|
|||||||
Reference in New Issue
Block a user