Add duration to voice message delegate
Otherwise you have to download the audio file before you can tell how large it is.
This commit is contained in:
@@ -120,13 +120,26 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
spacing: Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
id: playButton
|
id: playButton
|
||||||
}
|
}
|
||||||
QQC2.Label {
|
|
||||||
text: root.mediaInfo.filename
|
ColumnLayout {
|
||||||
wrapMode: Text.Wrap
|
spacing: 0
|
||||||
Layout.fillWidth: true
|
|
||||||
|
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 {
|
QQC2.ProgressBar {
|
||||||
|
|||||||
Reference in New Issue
Block a user