summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-07-17 00:10:30 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-07-17 00:10:30 +0200
commit9ddb26ea5100581c832920015f79de8d7366463f (patch)
treea8eb6625b1a3d56ba4204eedb5b24bbdeacf9d1d /src
parent1867c20f02d44f98154955a89686fe9edf09d7f5 (diff)
Added size label to compact download view.
Diffstat (limited to 'src')
-rw-r--r--src/downloadlistwidgetcompact.h1
-rw-r--r--src/downloadlistwidgetcompact.ui22
2 files changed, 22 insertions, 1 deletions
diff --git a/src/downloadlistwidgetcompact.h b/src/downloadlistwidgetcompact.h
index c25b7e99..1fcab3e6 100644
--- a/src/downloadlistwidgetcompact.h
+++ b/src/downloadlistwidgetcompact.h
@@ -74,6 +74,7 @@ signals:
protected:
+ QString sizeFormat(quint64 size) const;
bool editorEvent(QEvent *event, QAbstractItemModel *model,
const QStyleOptionViewItem &option, const QModelIndex &index);
diff --git a/src/downloadlistwidgetcompact.ui b/src/downloadlistwidgetcompact.ui
index b43f1fb3..a3cf3f02 100644
--- a/src/downloadlistwidgetcompact.ui
+++ b/src/downloadlistwidgetcompact.ui
@@ -19,7 +19,7 @@
<property name="autoFillBackground">
<bool>true</bool>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout">
+ <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,0,0">
<property name="spacing">
<number>2</number>
</property>
@@ -58,6 +58,26 @@
</widget>
</item>
<item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="sizeLabel">
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>