[vlc-commits] qml: make ExpandGridView respect width and x properties of expand delegates

Prince Gupta git at videolan.org
Mon Jan 4 13:37:37 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec 11 19:36:08 2020 +0530| [1cc21f139ecae9346e54192b54c3e6510e09836a] | committer: Pierre Lamot

qml: make ExpandGridView respect width and x properties of expand delegates

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/widgets/qml/ExpandGridView.qml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/ExpandGridView.qml b/modules/gui/qt/widgets/qml/ExpandGridView.qml
index 24ca2f0dd1..f3cf3228ed 100644
--- a/modules/gui/qt/widgets/qml/ExpandGridView.qml
+++ b/modules/gui/qt/widgets/qml/ExpandGridView.qml
@@ -453,10 +453,7 @@ NavigableFocusScope {
 
             if (root.expandIndex !== -1) {
                 var expandItemPos = root.getItemPos(expandItemGridId)
-                expandItem.x = expandItemPos[0]
                 expandItem.y = expandItemPos[1]
-
-                expandItem.width = root.getNbItemsPerRow() * root._effectiveCellWidth - root.horizontalSpacing
             }
 
             // Place the delegates after the expandItem



More information about the vlc-commits mailing list