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
|
- Media
|
||||||
- Uploading progress bar
|
- Show upload progression
|
||||||
- Text bubbles theming
|
- Theming (upload bar, media text bubbles)
|
||||||
- Downloading
|
- Downloading
|
||||||
- Bottom/top bar
|
- Bottom/top bar
|
||||||
- Image loading progress bar
|
- Image loading progress bar
|
||||||
|
@ -80,8 +80,8 @@ Rectangle {
|
|||||||
HLabel {
|
HLabel {
|
||||||
id: uploadCountLabel
|
id: uploadCountLabel
|
||||||
visible: Layout.preferredWidth > 0
|
visible: Layout.preferredWidth > 0
|
||||||
text: qsTr("%1/%2")
|
text: qsTr("%1")
|
||||||
.arg(model.index + 1).arg(uploadsList.model.count)
|
.arg(CppUtils.formattedBytes(model.total_size))
|
||||||
|
|
||||||
topPadding: theme.spacing / 2
|
topPadding: theme.spacing / 2
|
||||||
bottomPadding: topPadding
|
bottomPadding: topPadding
|
||||||
@ -89,7 +89,7 @@ Rectangle {
|
|||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
|
|
||||||
Layout.preferredWidth:
|
Layout.preferredWidth:
|
||||||
uploadsList.model.count < 2 ? 0 : implicitWidth
|
model.status === "Uploading" ? implicitWidth : 0
|
||||||
|
|
||||||
Behavior on Layout.preferredWidth { HNumberAnimation {} }
|
Behavior on Layout.preferredWidth { HNumberAnimation {} }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user