feat(Chat): deselect user selection if a click is detected outside message

This commit is contained in:
Ronan Abhamon 2016-11-09 16:37:36 +01:00
parent f52dc26a04
commit 1da42133d5
2 changed files with 13 additions and 1 deletions

View file

@ -11,6 +11,8 @@ import Linphone.Styles 1.0
ColumnLayout {
property var contact
// -----------------------------------------------------------------
spacing: 0
ScrollableListView {
@ -156,7 +158,6 @@ ColumnLayout {
: event
}
}
}
}

View file

@ -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 {