[vlc-commits] [Git][videolan/vlc][master] qml: set fill mode to preserve aspect crop in `DragItem`

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Feb 14 10:32:20 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
dd16a88a by Fatih Uzunoglu at 2025-02-14T10:03:01+00:00
qml: set fill mode to preserve aspect crop in `DragItem`

`DragItem` expects that the image fills the area denoted
for the image.

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/DragItem.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -473,6 +473,7 @@ Item {
                 radius: bg.radius
                 source: modelData.artwork ?? ""
                 sourceSize: dragItem.imageSourceSize ?? Qt.size(width * eDPR, height * eDPR)
+                fillMode: Image.PreserveAspectCrop
 
                 readonly property real eDPR: MainCtx.effectiveDevicePixelRatio(Window.window)
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dd16a88ad62944761e58af9581f9d6ddfca51fae

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dd16a88ad62944761e58af9581f9d6ddfca51fae
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list