diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-13 15:06:03 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-13 15:06:03 +0100 |
commit | 908c28bab89525250172a4013667319942846065 (patch) | |
tree | 73b85517ae12f8be4bc2071409136f181907795d /module/gui/Queue.py | |
parent | cleanup (diff) | |
download | pyload-908c28bab89525250172a4013667319942846065.tar.xz |
fixes + improvements
Diffstat (limited to 'module/gui/Queue.py')
-rw-r--r-- | module/gui/Queue.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py index 5acbf2eb3..977dd6e9a 100644 --- a/module/gui/Queue.py +++ b/module/gui/Queue.py @@ -44,7 +44,7 @@ def formatSpeed(speed): while speed > 1000: speed /= 1024.0 steps += 1 - return "%i %s" % (speed, sizes[steps]) + return "%.2f %s" % (speed, sizes[steps]) class QueueModel(CollectorModel): def __init__(self, view, connector): @@ -95,6 +95,10 @@ class QueueModel(CollectorModel): CollectorModel.removeEvent(self, event) self.updateCount() + def updateEvent(self, event): + CollectorModel.updateEvent(self, event) + self.updateCount() + def updateCount(self): packageCount = len(self._data) fileCount = 0 @@ -308,9 +312,9 @@ class QueueView(CollectorView): self.setColumnWidth(0, 300) self.setColumnWidth(1, 100) - self.setColumnWidth(2, 130) + self.setColumnWidth(2, 140) self.setColumnWidth(3, 50) - self.setColumnWidth(4, 120) + self.setColumnWidth(4, 130) self.setColumnWidth(5, 70) self.setEditTriggers(QAbstractItemView.NoEditTriggers) |