Browse Source

qml: enable texture reusing in artwork info widget drag item

pull/191/head
Fatih Uzunoglu 9 months ago
committed by Steve Lhomme
parent
commit
2e63c21db3
  1. 6
      modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml

6
modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml

@ -98,6 +98,10 @@ AbstractButton {
Widgets.DragItem {
id: dragItem
getTextureProvider: function() {
return root.contentItem?.image
}
onRequestData: (_, resolve, reject) => {
resolve([{
"title": Player.title,
@ -149,6 +153,8 @@ AbstractButton {
contentItem: RowLayout {
spacing: VLCStyle.margin_xsmall
property alias image: coverImage
Image {
id: coverImage

Loading…
Cancel
Save