Commit bbe581a2 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Make table header height equal to Kirigami list item height

This fixes a minor visual annoyance where the table header is slightly
taller than the list items in the sidebar, causing the table items to be
misaligned.
parent 3afb3d3d
......@@ -19,7 +19,7 @@ FocusScope {
x: -view.contentX
width: view.contentWidth
height: headerRow.height
height: heightHelper.height
property TableView view
property int sortColumn: -1
......@@ -51,6 +51,11 @@ FocusScope {
}
}
Kirigami.BasicListItem {
id: heightHelper
text: "Placeholder"
}
activeFocusOnTab: true
function focusNext(delta) {
......@@ -90,6 +95,7 @@ FocusScope {
id: headerItem
width: heading.view.columnWidthProvider(model.row)
height: heightHelper.height
enabled: width > 0
property string headerPosition: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment