import QtQuick 2.2
import "."
Item {
id: msgDelegate
width: parent.width
height: col.height
Column {
id: col
Text { text: 'MsgId: ' + AuthorId }
Text { text: 'AuthorId: ' + AuthorId }
Row {
Text { text: 'Name: ' + MsgName }
Text { text: ' PublishTs: ' + PublishTs }
}
Text {
wrapMode: Text.Wrap
text: 'Msg: ' + Msg
}
}
MouseArea {
hoverEnabled: false
anchors.fill: parent
onClicked: {
item.ListView.view.currentIndex = index
}
}
Rectangle {
width: parent.width
height: 2
color: "#AAAAAA"
anchors.left: parent.left
anchors.top: parent.bottom
}
}