Add duration to voice message delegate

Otherwise you have to download the audio file before you can tell how
large it is.

(cherry picked from commit f029cf842a)
This commit is contained in:
Joshua Goins
2025-05-20 18:18:48 -04:00
parent e015cbea07
commit 702d17bc4d

View File

@@ -130,13 +130,26 @@ ColumnLayout {
}
RowLayout {
spacing: Kirigami.Units.smallSpacing
QQC2.ToolButton {
id: playButton
}
QQC2.Label {
text: root.mediaInfo.filename
wrapMode: Text.Wrap
Layout.fillWidth: true
ColumnLayout {
spacing: 0
QQC2.Label {
text: root.mediaInfo.filename
wrapMode: Text.Wrap
Layout.fillWidth: true
}
QQC2.Label {
text: Format.formatDuration(root.mediaInfo.duration)
color: Kirigami.Theme.disabledTextColor
visible: !audio.hasAudio
Layout.fillWidth: true
}
}
}
QQC2.ProgressBar {