[vlc-devel] [PATCH 02/33] QML: change the style of the KeyNavigableTableView items
Adrien Maglo
magsoft at videolan.org
Wed Jun 12 14:01:09 CEST 2019
---
.../qt/qml/utils/KeyNavigableTableView.qml | 28 ++++---------------
1 file changed, 5 insertions(+), 23 deletions(-)
diff --git a/modules/gui/qt/qml/utils/KeyNavigableTableView.qml b/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
index c211ee5538..5a539367e3 100644
--- a/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
+++ b/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
@@ -52,7 +52,7 @@ NavigableFocusScope {
id: lineView
width: parent.width
- height: VLCStyle.fontHeight_normal + VLCStyle.margin_xxsmall
+ height: VLCStyle.fontHeight_normal + VLCStyle.margin_large
color: VLCStyle.colors.getBgColor(element.DelegateModel.inSelected, hoverArea.containsMouse, this.activeFocus)
@@ -77,8 +77,9 @@ NavigableFocusScope {
model: sortModel
Item {
- height: VLCStyle.fontHeight_normal
+ height: parent.height
width: model.width * view.width
+ Layout.alignment: Qt.AlignVCenter
Text {
text: rowModel[model.criteria]
@@ -88,8 +89,8 @@ NavigableFocusScope {
anchors {
fill: parent
- leftMargin: VLCStyle.margin_xxsmall
- rightMargin: VLCStyle.margin_xxsmall
+ leftMargin: VLCStyle.margin_xsmall
+ rightMargin: VLCStyle.margin_xsmall
}
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
@@ -98,17 +99,6 @@ NavigableFocusScope {
}
}
}
-
- Rectangle {
- color: VLCStyle.colors.buttonBorder
- antialiasing: true
- anchors{
- right: parent.right
- bottom: parent.bottom
- left: parent .left
- }
- height: 1
- }
}
}
}
@@ -175,14 +165,6 @@ NavigableFocusScope {
}
}
}
-
- //line below
- Rectangle {
- color: VLCStyle.colors.buttonBorder
- height: 1
- width: parent.width
- anchors.bottom: parent.bottom
- }
}
onSelectAll: delegateModel.selectAll()
--
2.20.1
More information about the vlc-devel
mailing list