[vlc-commits] qml: remove item separtor from KeyNavigableTableView
Prince Gupta
git at videolan.org
Thu Dec 17 14:57:06 UTC 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Dec 3 19:02:53 2020 +0530| [cb3f15bd4eb4c5106b0c80c105c0dbeba5451742] | committer: Pierre Lamot
qml: remove item separtor from KeyNavigableTableView
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> 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
More information about the vlc-commits
mailing list