mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-12 00:00:44 -04:00
Add chat buble delegate
This commit is contained in:
parent
cac5093f37
commit
3793a2196a
2 changed files with 113 additions and 16 deletions
|
@ -58,27 +58,17 @@ Item
|
|||
query: "$.data[*]"
|
||||
}
|
||||
|
||||
Component
|
||||
{
|
||||
id: chatMessageDelegate
|
||||
Item
|
||||
{
|
||||
height: 20
|
||||
Row
|
||||
{
|
||||
Text { text: author_name }
|
||||
Text { text: ": " + msg }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ListView
|
||||
{
|
||||
id: chatListView
|
||||
width: parent.width
|
||||
width: parent.width - 7
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
height: 300
|
||||
model: chatModel.model
|
||||
delegate: chatMessageDelegate
|
||||
delegate: ChatBubbleDelegate {}
|
||||
spacing: 3
|
||||
preferredHighlightBegin: 1
|
||||
|
||||
}
|
||||
|
||||
TextField
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue