[vlc-devel] [PATCH 09/33] QML: set the sourceSize of the MultiCoverPreview image to the widget size

Adrien Maglo magsoft at videolan.org
Wed Jun 12 14:01:16 CEST 2019


---
 modules/gui/qt/qml/utils/MultiCoverPreview.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt/qml/utils/MultiCoverPreview.qml b/modules/gui/qt/qml/utils/MultiCoverPreview.qml
index 4054f8f60d..d9ba67e901 100644
--- a/modules/gui/qt/qml/utils/MultiCoverPreview.qml
+++ b/modules/gui/qt/qml/utils/MultiCoverPreview.qml
@@ -62,6 +62,7 @@ Item {
                 Layout.fillWidth: true
                 source: albums.get(index).cover || VLCStyle.noArtCover
                 fillMode: Image.PreserveAspectCrop
+                sourceSize: Qt.size(width, height)
             }
         }
     }
-- 
2.20.1



More information about the vlc-devel mailing list