vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Thu Jul 23 
11:58:29 2020 +0530| [ee76dbae2a7ea88d15696cc07f4d627c967d61c7] | committer: 
Pierre Lamot

qml: respect loaded cover size in ListItem

previously it will overwritten with VLCStyle.icon_normal

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee76dbae2a7ea88d15696cc07f4d627c967d61c7
---

 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 {

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to