[vlc-devel] [PATCH 07/30] qml: remove item separtor from KeyNavigableTableView

Prince Gupta guptaprince8832 at gmail.com
Mon Dec 14 14:27:45 CET 2020


---
 .../qt/widgets/qml/KeyNavigableTableView.qml  | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index 836936c3f4..cb1e2cbbac 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -190,7 +190,6 @@ NavigableFocusScope {
 
             property var rowModel: model
             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
 
@@ -198,13 +197,6 @@ NavigableFocusScope {
             height: root.rowHeight
             color: highlighted ? VLCStyle.colors.bgHover : "transparent"
 
-            onHighlightedChanged: {
-                showSeparator = !highlighted
-                var nextItem = view.itemAtIndex(index + 1)
-                if ( nextItem && lineView.ListView.nextSection === lineView.ListView.section)
-                    nextItem.showSeparator = !highlighted && !nextItem.highlighted
-            }
-
             Connections {
                 target: selectionDelegateModel
                 onSelectionChanged: lineView.selected = selectionDelegateModel.isSelected(root.model.index(index, 0))
@@ -234,17 +226,6 @@ NavigableFocusScope {
                     root.itemDoubleClicked(model)
                 }
 
-                Rectangle {
-                    id: separator
-
-                    anchors.top: parent.top
-                    anchors.right: content.right
-                    width: content.width + (lineView.ListView.previousSection !== lineView.ListView.section
-                                            ? VLCStyle.table_section_width : 0)
-                    height: VLCStyle.heightBar_xxxsmall
-                    color: VLCStyle.colors.separator
-                }
-
                 Row {
                     id: content
 
-- 
2.25.1



More information about the vlc-devel mailing list