[vlc-commits] qml: remove unnecessary nodes in MusicAlbumsDisplay

Pierre Lamot git at videolan.org
Fri Sep 6 18:02:02 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Sep  5 17:01:41 2019 +0200| [b768186acb082c62b564d900c568edcb8189c4f3] | committer: Jean-Baptiste Kempf

qml: remove unnecessary nodes in MusicAlbumsDisplay

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

 .../gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml  | 26 +++++-----------------
 1 file changed, 5 insertions(+), 21 deletions(-)

diff --git a/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml b/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
index 1a2d2a3781..9d9c6d63c0 100644
--- a/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
@@ -126,29 +126,13 @@ Utils.NavigableFocusScope {
                 }
             }
 
-            expandDelegate:  Rectangle {
+            expandDelegate: MusicAlbumsGridExpandDelegate {
                 id: expandDelegateId
-                implicitHeight: albumDetail.implicitHeight
                 width: root.width
-                color: VLCStyle.colors.bgAlt
-                property int currentId: -1
-                property alias model : albumDetail.model
-                property alias currentItemY: albumDetail.currentItemY
-                property alias currentItemHeight: albumDetail.currentItemHeight
-
-                onActiveFocusChanged: {
-                    if (activeFocus)
-                        albumDetail.forceActiveFocus()
-                }
-
-                MusicAlbumsGridExpandDelegate {
-                    id: albumDetail
-                    anchors.fill: parent
-                    onActionCancel:  gridView_id.retract()
-                    onActionUp:  gridView_id.retract()
-                    onActionLeft: root.actionLeft(index)
-                    onActionRight: root.actionRight(index)
-                }
+                onActionCancel:  gridView_id.retract()
+                onActionUp:  gridView_id.retract()
+                onActionLeft: root.actionLeft(index)
+                onActionRight: root.actionRight(index)
             }
 
             model: delegateModel



More information about the vlc-commits mailing list