[vlc-devel] [PATCH 18/29] qml: respect loaded cover size in ListItem

Prince Gupta guptaprince8832 at gmail.com
Tue Aug 4 13:34:51 CEST 2020


previously it will overwritten with VLCStyle.icon_normal
---
 modules/gui/qt/widgets/qml/ListItem.qml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/ListItem.qml b/modules/gui/qt/widgets/qml/ListItem.qml
index 70a768b010..32e2dc5992 100644
--- a/modules/gui/qt/widgets/qml/ListItem.qml
+++ b/modules/gui/qt/widgets/qml/ListItem.qml
@@ -117,10 +117,11 @@ NavigableFocusScope {
                     anchors.fill: parent
                     anchors.rightMargin: VLCStyle.margin_xxsmall
                     Item {
-                        Layout.preferredWidth: VLCStyle.icon_normal
-                        Layout.preferredHeight: VLCStyle.icon_normal
+                        Layout.preferredWidth: coverLoader.item.width
+                        Layout.preferredHeight: coverLoader.item.height
                         Loader {
-                            anchors.fill: parent
+                            id: coverLoader
+
                             sourceComponent: root.cover
                         }
                         Text {
-- 
2.25.1



More information about the vlc-devel mailing list