change selected list on click

This commit is contained in:
Iuri Matias 2020-05-11 12:23:03 -04:00
parent 53ac253cab
commit a5494210ed
1 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,7 @@ ApplicationWindow {
Component { Component {
id: chatViewDelegate id: chatViewDelegate
Rectangle { Rectangle {
id: wrapper id: wrapper
height: 64 height: 64
@ -272,6 +273,12 @@ ApplicationWindow {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 16 anchors.leftMargin: 16
radius: 8 radius: 8
MouseArea {
anchors.fill: parent
onClicked: listView.currentIndex = index
}
Rectangle { Rectangle {
id: contactImage id: contactImage
width: 40 width: 40