[vlc-commits] qml: add minimumWidth property to PlaylistListView
Fatih Uzunoglu
git at videolan.org
Tue Jan 12 13:20:57 UTC 2021
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan 8 00:36:59 2021 +0300| [22083b806231884846c9ebb8b471de5500fd9da8] | committer: Pierre Lamot
qml: add minimumWidth property to PlaylistListView
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=22083b806231884846c9ebb8b471de5500fd9da8
---
modules/gui/qt/maininterface/qml/MainDisplay.qml | 2 +-
modules/gui/qt/playlist/qml/PlaylistListView.qml | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/maininterface/qml/MainDisplay.qml b/modules/gui/qt/maininterface/qml/MainDisplay.qml
index f1f6d08698..e95bbe3e58 100644
--- a/modules/gui/qt/maininterface/qml/MainDisplay.qml
+++ b/modules/gui/qt/maininterface/qml/MainDisplay.qml
@@ -250,7 +250,7 @@ Widgets.NavigableFocusScope {
PropertyChanges {
target: playlistColumn
width: resizeHandle.clamp(root.width / resizeHandle.widthFactor,
- VLCStyle.dp(225, VLCStyle.scale),
+ playlist.minimumWidth,
root.width / 2)
visible: true
}
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index fbd36a5ddc..abe02aa99a 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -32,6 +32,11 @@ Widgets.NavigableFocusScope {
property alias model: listView.model
+ readonly property real minimumWidth: noContentInfoColumn.implicitWidth +
+ leftPadding +
+ rightPadding +
+ 2 * (VLCStyle.margin_xsmall)
+
property int leftPadding: 0
property int rightPadding: 0
More information about the vlc-commits
mailing list