Show upload file size instead of index/upcount

This commit is contained in:
miruka 2019-11-06 11:03:08 -04:00
parent 28dd35fc1b
commit 3cbbd6042b
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
- Media
- Uploading progress bar
- Text bubbles theming
- Show upload progression
- Theming (upload bar, media text bubbles)
- Downloading
- Bottom/top bar
- Image loading progress bar

View File

@ -80,8 +80,8 @@ Rectangle {
HLabel {
id: uploadCountLabel
visible: Layout.preferredWidth > 0
text: qsTr("%1/%2")
.arg(model.index + 1).arg(uploadsList.model.count)
text: qsTr("%1")
.arg(CppUtils.formattedBytes(model.total_size))
topPadding: theme.spacing / 2
bottomPadding: topPadding
@ -89,7 +89,7 @@ Rectangle {
rightPadding: leftPadding
Layout.preferredWidth:
uploadsList.model.count < 2 ? 0 : implicitWidth
model.status === "Uploading" ? implicitWidth : 0
Behavior on Layout.preferredWidth { HNumberAnimation {} }
}