summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.h
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-05-20 23:53:57 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-05-20 23:53:57 +0200
commit6d6444c126c59c4307873755b08fc5773b3d3955 (patch)
tree7da3a02da5b15d79118772fee2a901773f13c3a6 /src/downloadlistwidget.h
parent4b66c6c1ef52a68cbca752be69fc57b47a25104c (diff)
Made downlods file sizes human readable instead of just being KB
Diffstat (limited to 'src/downloadlistwidget.h')
-rw-r--r--src/downloadlistwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/downloadlistwidget.h b/src/downloadlistwidget.h
index c1dfe4cd..62f21837 100644
--- a/src/downloadlistwidget.h
+++ b/src/downloadlistwidget.h
@@ -74,11 +74,13 @@ signals:
protected:
+ QString sizeFormat(quint64 size) const;
bool editorEvent(QEvent *event, QAbstractItemModel *model,
const QStyleOptionViewItem &option, const QModelIndex &index);
private:
+
void drawCache(QPainter *painter, const QStyleOptionViewItem &option, const QPixmap &cache) const;
private slots: