[vlc-commits] qml: fix the "playlist empty" label overflow in the playlist
Pierre Lamot
git at videolan.org
Fri Jan 10 15:06:40 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Dec 18 11:38:35 2019 +0100| [8530a1441067a40fbf8d7aa6a250f24bc46fdcf0] | committer: Jean-Baptiste Kempf
qml: fix the "playlist empty" label overflow in the playlist
the label was overflowing the playlist when the width was too small
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8530a1441067a40fbf8d7aa6a250f24bc46fdcf0
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index e8c8ae1437..d14d757980 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -319,11 +319,15 @@ Widgets.NavigableFocusScope {
}
Label {
- anchors.centerIn: parent
+ anchors.fill: parent
visible: plmodel.count === 0
font.pixelSize: VLCStyle.fontHeight_xxlarge
color: view.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
text: i18n.qtr("playlist is empty")
+ wrapMode: Text.WordWrap
+ verticalAlignment: Text.AlignVCenter
+ horizontalAlignment: Text.AlignHCenter
+ padding: VLCStyle.margin_small
}
}
More information about the vlc-commits
mailing list