Add VideoDelegate.

This commit is contained in:
Black Hat
2019-05-11 22:12:58 +08:00
parent 2cddd4face
commit cab82d7b8a
5 changed files with 273 additions and 0 deletions

View File

@@ -219,6 +219,24 @@ Item {
}
}
DelegateChoice {
roleValue: "video"
delegate: ColumnLayout {
width: messageListView.width
SectionDelegate {
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: parent.width
visible: showSection
}
VideoDelegate {
Layout.alignment: sentByMe ? Qt.AlignRight : Qt.AlignLeft
}
}
}
DelegateChoice {
roleValue: "file"
delegate: ColumnLayout {