change selected list on click
This commit is contained in:
parent
53ac253cab
commit
a5494210ed
7
main.qml
7
main.qml
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue