[vlc-devel] [PATCH 46/55] qml: add minimumWidth property to PlaylistListView

Fatih Uzunoglu fuzun54 at outlook.com
Thu Jan 7 21:36:59 UTC 2021


---
 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
 
-- 
2.27.0



More information about the vlc-devel mailing list