uiux(Chat): make entire contact item clickable when starting new chat

Closes #847
This commit is contained in:
Pascal Precht 2020-09-08 14:00:38 +02:00 committed by Iuri Matias
parent a9fe6eb3b2
commit 2cd6260515
1 changed files with 9 additions and 7 deletions

View File

@ -60,13 +60,6 @@ Rectangle {
anchors.rightMargin: Style.current.padding
fillMode: Image.PreserveAspectFit
source: "../../../img/list-next.svg"
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
onItemChecked(pubKey, isChecked)
}
}
}
CheckBox {
@ -94,4 +87,13 @@ Rectangle {
anchors.top: accountImage.top
anchors.topMargin: 10
}
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
visible: !showCheckbox
onClicked: {
onItemChecked(pubKey, isChecked)
}
}
}