Move section delegate to header.
Switch from builtin section delegate to custom section delegate. Fixes #4.
This commit is contained in:
parent
2b01613161
commit
5943a32a4b
|
@ -101,13 +101,17 @@ Item {
|
||||||
room: currentRoom
|
room: currentRoom
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: MessageDelegate {}
|
delegate: Column {
|
||||||
|
width: parent.width
|
||||||
|
spacing: 8
|
||||||
|
|
||||||
section.property: "section"
|
RowLayout {
|
||||||
section.criteria: ViewSection.FullString
|
readonly property bool sectionVisible: section !== aboveSection
|
||||||
section.delegate: RowLayout {
|
|
||||||
width: parent.width * 0.6
|
width: parent.width * 0.8
|
||||||
anchors.right: parent.right
|
visible: sectionVisible
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
spacing: 8
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -116,11 +120,19 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
padding: 4
|
|
||||||
text: section
|
text: section
|
||||||
color: Material.accent
|
color: Material.accent
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height:2
|
||||||
|
color: Material.accent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MessageDelegate {}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: messageListViewScrollBar
|
ScrollBar.vertical: messageListViewScrollBar
|
||||||
|
|
|
@ -31,6 +31,7 @@ Item {
|
||||||
id: searchField
|
id: searchField
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 36
|
height: 36
|
||||||
|
color: "black"
|
||||||
leftPadding: mini ? 4 : 16
|
leftPadding: mini ? 4 : 16
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
|
|
Loading…
Reference in New Issue