Commit 95ce08e7 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/SmartSearchBar): handle correctly mouse hover header

parent c5427180
...@@ -17,9 +17,11 @@ SearchBox { ...@@ -17,9 +17,11 @@ SearchBox {
signal launchCall (string sipAddress) signal launchCall (string sipAddress)
signal launchVideoCall (string sipAddress) signal launchVideoCall (string sipAddress)
// ---------------------------------------------------------------------------
// Header.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
header: Column { header: MouseArea {
readonly property string interpretableSipAddress: SipAddressesModel.interpretUrl(searchBox.filter) readonly property string interpretableSipAddress: SipAddressesModel.interpretUrl(searchBox.filter)
height: { height: {
...@@ -28,11 +30,18 @@ SearchBox { ...@@ -28,11 +30,18 @@ SearchBox {
} }
width: parent.width width: parent.width
// Workaround to handle mouse.
// Without it, the mouse can be given to items list when it is hover header.
hoverEnabled: true
Column {
anchors.fill: parent
spacing: 0 spacing: 0
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
// Default contact. // Default contact.
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
Loader { Loader {
id: defaultContact id: defaultContact
...@@ -94,9 +103,9 @@ SearchBox { ...@@ -94,9 +103,9 @@ SearchBox {
} }
} }
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
// Add contact button. // Add contact button.
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
MouseArea { MouseArea {
id: addContactButton id: addContactButton
...@@ -143,7 +152,7 @@ SearchBox { ...@@ -143,7 +152,7 @@ SearchBox {
} }
} }
} }
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Entries. // Entries.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment