Add chat buble delegate

This commit is contained in:
Angela Mazzurco 2017-06-07 18:58:11 +02:00
parent cac5093f37
commit 3793a2196a
2 changed files with 113 additions and 16 deletions

View file

@ -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