[vlc-devel] [PATCH 2/9] qml: attach containsMouse and currentlyFocused property to delegates in KeyNavigableTableView
jagannatharjun
guptaprince8832 at gmail.com
Fri Jun 5 17:27:18 CEST 2020
From: Prince Gupta <guptaprince8832 at gmail.com>
---
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index feeb4c4418..f6ea48806f 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -158,6 +158,7 @@ NavigableFocusScope {
property var rowModel: model
property bool selected: selectionModel.isSelected(root.model.index(index, 0))
+
Connections {
target: selectionModel
onSelectionChanged: lineView.selected = selectionModel.isSelected(root.model.index(index, 0))
@@ -213,6 +214,8 @@ NavigableFocusScope {
Loader{
property var rowModel: lineView.rowModel
property var colModel: modelData
+ readonly property bool currentlyFocused: lineView.activeFocus
+ readonly property bool containsMouse: hoverArea.containsMouse
anchors.fill: parent
sourceComponent: colModel.colDelegate || root.colDelegate
--
2.25.1
More information about the vlc-devel
mailing list