[vlc-devel] [PATCH 04/23] qml: add header to the playlist

Pierre Lamot pierre at videolabs.io
Thu Jul 2 15:34:07 CEST 2020


On 2020-07-02 15:21, Fatih Uzunoglu wrote:
> ---
>  .../gui/qt/playlist/qml/PlaylistListView.qml    | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml
> b/modules/gui/qt/playlist/qml/PlaylistListView.qml
> index a3bb1186c8..b6d9d30748 100644
> --- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
> +++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
> @@ -116,6 +116,23 @@ Widgets.NavigableFocusScope {
>      ColumnLayout {
>          anchors.fill: parent
> 
> +    Row {
> +        width: root.width
> +        leftPadding: VLCStyle.margin_normal
> +        topPadding: VLCStyle.margin_normal
> +        bottomPadding: VLCStyle.margin_large
> +
> +        ColumnLayout {
> +            Widgets.SubtitleLabel {
> +                text: i18n.qtr("Playqueue")
> +            }
> +
> +            Widgets.CaptionLabel {
> +                anchors.topMargin: VLCStyle.margin_small
> +                text: root.plmodel.count + " " + i18n.qtr("elements")
> + ", " + root.plmodel.duration.toMinutes() + " " + i18n.qtr("min")


please use something like

```
text: i18n.qtr("%1 elements, %2 min").arg( 
root.plmodel.count).arg(root.plmodel.duration.toMinutes())
```

> +            }
> +        }
> +    }
> 
>      Widgets.KeyNavigableListView {
>          id: view


More information about the vlc-devel mailing list