Show upload file size instead of index/upcount
This commit is contained in:
parent
28dd35fc1b
commit
3cbbd6042b
4
TODO.md
4
TODO.md
|
@ -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
|
||||
|
|
|
@ -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 {} }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user