From f029cf842a3a806327e0d4e5c0b24d3abccae9cb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 20 May 2025 18:18:48 -0400 Subject: [PATCH] Add duration to voice message delegate Otherwise you have to download the audio file before you can tell how large it is. --- src/timeline/AudioComponent.qml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/timeline/AudioComponent.qml b/src/timeline/AudioComponent.qml index e38fbd76e..f3b846d8e 100644 --- a/src/timeline/AudioComponent.qml +++ b/src/timeline/AudioComponent.qml @@ -120,13 +120,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 {