mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 10:29:24 +00:00
fix(ui/views/App/Main/Contacts): use correctly SipAddressesMenu
This commit is contained in:
parent
44bb52b653
commit
4fa9488226
2 changed files with 7 additions and 9 deletions
|
|
@ -10,7 +10,6 @@ Item {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
property alias launcher: menu.launcher
|
||||
property alias relativeTo: menu.relativeTo
|
||||
property alias relativeX: menu.relativeX
|
||||
property alias relativeY: menu.relativeY
|
||||
|
|
@ -19,7 +18,7 @@ Item {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function showMenu () {
|
||||
function show () {
|
||||
var length = sipAddresses.length
|
||||
if (!length) {
|
||||
return
|
||||
|
|
@ -29,7 +28,7 @@ Item {
|
|||
return sipAddressesMenu.sipAddressClicked(sipAddresses[0])
|
||||
}
|
||||
|
||||
menu.showMenu()
|
||||
menu.show()
|
||||
}
|
||||
|
||||
function _fillModel () {
|
||||
|
|
@ -57,13 +56,12 @@ Item {
|
|||
|
||||
entryHeight: SipAddressesMenuStyle.entry.height
|
||||
maxMenuHeight: SipAddressesMenuStyle.maxHeight
|
||||
width: SipAddressesMenuStyle.entry.width
|
||||
|
||||
ScrollableListView {
|
||||
id: list
|
||||
|
||||
anchors.fill: parent
|
||||
spacing: SipAddressesMenuStyle.spacing
|
||||
width: SipAddressesMenuStyle.entry.width
|
||||
|
||||
model: ListModel {
|
||||
id: model
|
||||
|
|
@ -106,7 +104,7 @@ Item {
|
|||
hoverEnabled: true
|
||||
|
||||
onClicked: {
|
||||
menu.hideMenu()
|
||||
menu.hide()
|
||||
sipAddressesMenu.sipAddressClicked($sipAddress)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,17 +132,17 @@ ColumnLayout {
|
|||
|
||||
ActionButton {
|
||||
icon: 'video_call'
|
||||
onClicked: actions.itemAt(0).showMenu()
|
||||
onClicked: actions.itemAt(0).show()
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
icon: 'call'
|
||||
onClicked: actions.itemAt(1).showMenu()
|
||||
onClicked: actions.itemAt(1).show()
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
icon: 'chat'
|
||||
onClicked: actions.itemAt(2).showMenu()
|
||||
onClicked: actions.itemAt(2).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue