[vlc-commits] [Git][videolan/vlc][master] qml: fix `artworkTextureProvider` may no longer be provided in `TableViewDelegateExt`

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 19 02:44:21 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d9c22e06 by Fatih Uzunoglu at 2026-09-19T02:35:13+00:00
qml: fix `artworkTextureProvider` may no longer be provided in `TableViewDelegateExt`

This fixes texture reusing no longer being applicable, such as when dragging the
delegate.

Regression since 9dcc03a3.

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/widgets/qml/TableViewDelegateExt.qml
=====================================
@@ -229,6 +229,16 @@ T.Control {
                 id: loader
                 required property var modelData
                 property TableRowDelegate item: null
+
+                onItemChanged: {
+                    if (item) {
+                        // `TableViewDelegateExt` uses the last sub-delegate that declares property `artworkTextureProvider`:
+                        if (item.artworkTextureProvider !== undefined) {
+                            delegate.artworkTextureProvider = Qt.binding(() => loader.item?.artworkTextureProvider ?? null)
+                        }
+                    }
+                }
+
                 width: {
                     if (!!modelData.size)
                         return modelData.size * delegate.fixedColumnWidth
@@ -271,8 +281,6 @@ T.Control {
                     } else {
                         loader.item = incubator.object
                     }
-
-                    delegate.artworkTextureProvider = Qt.binding(() => loader?.item?.artworkTextureProvider ?? null)
                 }
                 Component.onDestruction: {
                     item?.destroy()



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d9c22e06487e13c070912b3dcbfe4fe5ef8ffb6f
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list