mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
feat(Chat): deselect user selection if a click is detected outside message
This commit is contained in:
parent
f52dc26a04
commit
1da42133d5
2 changed files with 13 additions and 1 deletions
|
|
@ -11,6 +11,8 @@ import Linphone.Styles 1.0
|
|||
ColumnLayout {
|
||||
property var contact
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
spacing: 0
|
||||
|
||||
ScrollableListView {
|
||||
|
|
@ -156,7 +158,6 @@ ColumnLayout {
|
|||
: event
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import QtQuick 2.7
|
||||
|
||||
import Common 1.0
|
||||
import Linphone.Styles 1.0
|
||||
import Utils 1.0
|
||||
|
||||
|
|
@ -59,6 +60,16 @@ Item {
|
|||
? Qt.PointingHandCursor
|
||||
: Qt.ArrowCursor
|
||||
}
|
||||
|
||||
InvertedMouseArea {
|
||||
anchors.fill: parent
|
||||
enabled: parent.activeFocus
|
||||
|
||||
onPressed: {
|
||||
parent.deselect()
|
||||
parent.focus = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue