Fix room list header when collapsed

This commit is contained in:
James Graham
2025-06-26 14:34:18 +01:00
parent b9d5ed699e
commit cb4e7d4943

View File

@@ -37,13 +37,16 @@ QQC2.ItemDelegate {
Keys.onReturnPressed: root.treeView.toggleExpanded(row)
Keys.onSpacePressed: root.treeView.toggleExpanded(row)
contentItem: Kirigami.ListSectionHeader {
visible: !root.collapsed
horizontalPadding: 0
topPadding: 0
bottomPadding: 0
text: root.collapsed ? "" : root.displayName
contentItem: RowLayout {
spacing: 0
Kirigami.ListSectionHeader {
Layout.fillWidth: true
visible: !root.collapsed
horizontalPadding: 0
topPadding: 0
bottomPadding: 0
text: root.collapsed ? "" : root.displayName
}
QQC2.ToolButton {
id: collapseButton
Layout.alignment: Qt.AlignHCenter