[vlc-devel] [PATCH 46/49] qml: fix items wrongly highlited when scrolling the ExpandGridView

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


  recycled items where keeping the focus property, so they appeared like they
  where having the focus/being selected
---
 modules/gui/qt/qml/utils/ExpandGridView.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/qml/utils/ExpandGridView.qml b/modules/gui/qt/qml/utils/ExpandGridView.qml
index f1fa8f4987..1d55377ebf 100644
--- a/modules/gui/qt/qml/utils/ExpandGridView.qml
+++ b/modules/gui/qt/qml/utils/ExpandGridView.qml
@@ -239,6 +239,7 @@ NavigableFocusScope {
                 item.model = model.items.get(i).model
                 item.index = i
                 item.selected = model.items.get(i).inSelected
+                item.focus = false
                 item.x = pos[0]
                 item.y = pos[1]
                 item.visible = true
@@ -252,6 +253,7 @@ NavigableFocusScope {
                 pos = getItemPos(i)
                 item = getChild(i, _unusedItemList)
                 item.model = model.items.get(i).model
+                item.focus = false
                 item.index = i
                 item.selected = model.items.get(i).inSelected
                 item.x = pos[0]
-- 
2.20.1



More information about the vlc-devel mailing list