[vlc-devel] [PATCH 08/12] qml: attach index property to column items of KeyNavigableTableView
Prince Gupta
guptaprince8832 at gmail.com
Mon Aug 24 17:08:25 CEST 2020
---
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index adfb4fbe9d..8564a4779b 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -184,6 +184,7 @@ NavigableFocusScope {
property bool selected: selectionDelegateModel.isSelected(root.model.index(index, 0))
property alias showSeparator: separator.visible
readonly property bool highlighted: selected || hoverArea.containsMouse || activeFocus
+ readonly property int _index: index
width: view.width
height: root.rowHeight
@@ -267,6 +268,7 @@ NavigableFocusScope {
property var colModel: modelData
readonly property bool currentlyFocused: lineView.activeFocus
readonly property bool containsMouse: hoverArea.containsMouse
+ readonly property int index: lineView._index
anchors.fill: parent
sourceComponent: colModel.colDelegate || root.colDelegate
--
2.25.1
More information about the vlc-devel
mailing list