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 {
signal launchCall (string sipAddress)
signal launchVideoCall (string sipAddress)
// ---------------------------------------------------------------------------
// Header.
// ---------------------------------------------------------------------------
header: Column {
header: MouseArea {
readonly property string interpretableSipAddress: SipAddressesModel.interpretUrl(searchBox.filter)
height: {
......@@ -28,11 +30,18 @@ SearchBox {
}
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
// -------------------------------------------------------------------------
// -----------------------------------------------------------------------
// Default contact.
// -------------------------------------------------------------------------
// -----------------------------------------------------------------------
Loader {
id: defaultContact
......@@ -94,9 +103,9 @@ SearchBox {
}
}
// -------------------------------------------------------------------------
// -----------------------------------------------------------------------
// Add contact button.
// -------------------------------------------------------------------------
// -----------------------------------------------------------------------
MouseArea {
id: addContactButton
......@@ -143,7 +152,7 @@ SearchBox {
}
}
}
}
// ---------------------------------------------------------------------------
// 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