vlc | branch: master | Prince Gupta <[email protected]> | Fri Jun  5 
21:15:23 2020 +0530| [79e4d6d7494ab90195472f66cd6e1aa398b298ac] | committer: 
Pierre Lamot

qml: show bgHover color when row has focus in KeyNavigableTableView

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

 modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml 
b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index f6ea48806f..718a02b576 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -152,12 +152,13 @@ NavigableFocusScope {
         delegate:Rectangle {
             id: lineView
 
-            width: view.width
-            height: root.rowHeight
-            color: VLCStyle.colors.getBgColor(selected, 
hoverArea.containsMouse, lineView.activeFocus)
-
             property var rowModel: model
             property bool selected: 
selectionModel.isSelected(root.model.index(index, 0))
+            readonly property bool highlighted: selected || 
hoverArea.containsMouse || activeFocus
+
+            width: view.width
+            height: root.rowHeight
+            color: highlighted ? VLCStyle.colors.bgHover : "transparent"
 
             Connections {
                 target: selectionModel

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to