Commit 3b8a7527 authored by Prince Gupta's avatar Prince Gupta Committed by Pierre Lamot

qml: attach containsMouse and currentlyFocused property to delegates in KeyNavigableTableView

parent 217007a4
......@@ -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 {
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment