Commit 4fa94882 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/Main/Contacts): use correctly `SipAddressesMenu`

parent 44bb52b6
...@@ -10,7 +10,6 @@ Item { ...@@ -10,7 +10,6 @@ Item {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
property alias launcher: menu.launcher
property alias relativeTo: menu.relativeTo property alias relativeTo: menu.relativeTo
property alias relativeX: menu.relativeX property alias relativeX: menu.relativeX
property alias relativeY: menu.relativeY property alias relativeY: menu.relativeY
...@@ -19,7 +18,7 @@ Item { ...@@ -19,7 +18,7 @@ Item {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
function showMenu () { function show () {
var length = sipAddresses.length var length = sipAddresses.length
if (!length) { if (!length) {
return return
...@@ -29,7 +28,7 @@ Item { ...@@ -29,7 +28,7 @@ Item {
return sipAddressesMenu.sipAddressClicked(sipAddresses[0]) return sipAddressesMenu.sipAddressClicked(sipAddresses[0])
} }
menu.showMenu() menu.show()
} }
function _fillModel () { function _fillModel () {
...@@ -57,13 +56,12 @@ Item { ...@@ -57,13 +56,12 @@ Item {
entryHeight: SipAddressesMenuStyle.entry.height entryHeight: SipAddressesMenuStyle.entry.height
maxMenuHeight: SipAddressesMenuStyle.maxHeight maxMenuHeight: SipAddressesMenuStyle.maxHeight
width: SipAddressesMenuStyle.entry.width
ScrollableListView { ScrollableListView {
id: list id: list
anchors.fill: parent
spacing: SipAddressesMenuStyle.spacing spacing: SipAddressesMenuStyle.spacing
width: SipAddressesMenuStyle.entry.width
model: ListModel { model: ListModel {
id: model id: model
...@@ -106,7 +104,7 @@ Item { ...@@ -106,7 +104,7 @@ Item {
hoverEnabled: true hoverEnabled: true
onClicked: { onClicked: {
menu.hideMenu() menu.hide()
sipAddressesMenu.sipAddressClicked($sipAddress) sipAddressesMenu.sipAddressClicked($sipAddress)
} }
} }
......
...@@ -132,17 +132,17 @@ ColumnLayout { ...@@ -132,17 +132,17 @@ ColumnLayout {
ActionButton { ActionButton {
icon: 'video_call' icon: 'video_call'
onClicked: actions.itemAt(0).showMenu() onClicked: actions.itemAt(0).show()
} }
ActionButton { ActionButton {
icon: 'call' icon: 'call'
onClicked: actions.itemAt(1).showMenu() onClicked: actions.itemAt(1).show()
} }
ActionButton { ActionButton {
icon: 'chat' icon: 'chat'
onClicked: actions.itemAt(2).showMenu() onClicked: actions.itemAt(2).show()
} }
} }
......
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