vlc | branch: master | Prince Gupta <[email protected]> | Thu Dec 3 19:02:53 2020 +0530| [cb3f15bd4eb4c5106b0c80c105c0dbeba5451742] | committer: Pierre Lamot
qml: remove item separtor from KeyNavigableTableView Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb3f15bd4eb4c5106b0c80c105c0dbeba5451742 --- modules/gui/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 661d29cacb..56d3381916 100644 --- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml +++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml @@ -191,7 +191,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 property int _modifiersOnLastPress: Qt.NoModifier @@ -200,13 +199,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)) @@ -258,17 +250,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 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
