[vlc-devel] [PATCH 48/49] qml: remove unused expanderItem in ExpandGridView

Pierre Lamot pierre at videolabs.io
Fri Oct 11 15:18:12 CEST 2019


---
 modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml | 2 +-
 modules/gui/qt/qml/utils/ExpandGridView.qml       | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
index 1ee788336b..7075078f2a 100644
--- a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
@@ -66,7 +66,7 @@ Utils.NavigableFocusScope {
             enabled: medialib.gridView
             text: "Information"
             onTriggered: {
-                view.currentItem.switchExpandItem(contextMenu.model.index, view.currentItem.currentItem)
+                view.currentItem.switchExpandItem(contextMenu.model.index)
             }
         }
         Utils.MenuItemExt {
diff --git a/modules/gui/qt/qml/utils/ExpandGridView.qml b/modules/gui/qt/qml/utils/ExpandGridView.qml
index 9280a119fb..268133ad33 100644
--- a/modules/gui/qt/qml/utils/ExpandGridView.qml
+++ b/modules/gui/qt/qml/utils/ExpandGridView.qml
@@ -47,7 +47,6 @@ NavigableFocusScope {
     //delegate to display the extended item
     property Component delegate: Item{}
     property Component expandDelegate: Item{}
-    property Item expanderItem: Item{}
 
     property Component headerDelegate: Item{}
     property int headerHeight: headerItemLoader.implicitHeight
@@ -63,10 +62,7 @@ NavigableFocusScope {
         flickable.layout()
     }
 
-    function switchExpandItem(index,item) {
-        if (item)
-            root.expanderItem = item
-
+    function switchExpandItem(index) {
         if (index === _expandIndex)
             _newExpandIndex = -1
         else
-- 
2.20.1



More information about the vlc-devel mailing list