[vlc-commits] qml: attach containsMouse and currentlyFocused property to delegates in KeyNavigableTableView

Prince Gupta git at videolan.org
Tue Jun 9 11:03:06 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jun  5 21:15:18 2020 +0530| [3b8a7527f16f6fd1ff3eae3ef4bb7e1a6afb544e] | committer: Pierre Lamot

qml: attach containsMouse and currentlyFocused property to delegates in KeyNavigableTableView

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

 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



More information about the vlc-commits mailing list