Commit f0654e12 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Main/ContactEdit): supports many addresses

parent 7d319705
...@@ -5,6 +5,7 @@ import QtQuick.Layouts 1.3 ...@@ -5,6 +5,7 @@ import QtQuick.Layouts 1.3
import Common 1.0 import Common 1.0
import Linphone 1.0 import Linphone 1.0
import Linphone.Styles 1.0
import Utils 1.0 import Utils 1.0
import App.Styles 1.0 import App.Styles 1.0
...@@ -120,6 +121,8 @@ ColumnLayout { ...@@ -120,6 +121,8 @@ ColumnLayout {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
Rectangle { Rectangle {
id: infoBar
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: ContactEditStyle.bar.height Layout.preferredHeight: ContactEditStyle.bar.height
color: ContactEditStyle.bar.color color: ContactEditStyle.bar.color
...@@ -183,9 +186,7 @@ ColumnLayout { ...@@ -183,9 +186,7 @@ ColumnLayout {
ActionButton { ActionButton {
icon: 'history' icon: 'history'
onClicked: window.setView('Conversation', { onClicked: sipAddressesMenu.showMenu()
sipAddress: contactEdit.sipAddress
})
} }
} }
...@@ -211,6 +212,22 @@ ColumnLayout { ...@@ -211,6 +212,22 @@ ColumnLayout {
} }
} }
// ---------------------------------------------------------------------------
SipAddressesMenu {
id: sipAddressesMenu
relativeTo: infoBar
relativeX: infoBar.width - SipAddressesMenuStyle.entry.width
relativeY: infoBar.height
sipAddresses: _contact ? _contact.vcard.sipAddresses : [ contactEdit.sipAddress ]
onSipAddressClicked: window.setView('Conversation', {
sipAddress: sipAddress
})
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Info list. // Info list.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
......
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