Fix room list header when collapsed
This commit is contained in:
@@ -37,13 +37,16 @@ QQC2.ItemDelegate {
|
|||||||
Keys.onReturnPressed: root.treeView.toggleExpanded(row)
|
Keys.onReturnPressed: root.treeView.toggleExpanded(row)
|
||||||
Keys.onSpacePressed: root.treeView.toggleExpanded(row)
|
Keys.onSpacePressed: root.treeView.toggleExpanded(row)
|
||||||
|
|
||||||
contentItem: Kirigami.ListSectionHeader {
|
contentItem: RowLayout {
|
||||||
visible: !root.collapsed
|
spacing: 0
|
||||||
horizontalPadding: 0
|
Kirigami.ListSectionHeader {
|
||||||
topPadding: 0
|
Layout.fillWidth: true
|
||||||
bottomPadding: 0
|
visible: !root.collapsed
|
||||||
text: root.collapsed ? "" : root.displayName
|
horizontalPadding: 0
|
||||||
|
topPadding: 0
|
||||||
|
bottomPadding: 0
|
||||||
|
text: root.collapsed ? "" : root.displayName
|
||||||
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
id: collapseButton
|
id: collapseButton
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|||||||
Reference in New Issue
Block a user