mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 08:18:08 +00:00
feat(ui/views/App/Main/ContactEdit): use Connections component
This commit is contained in:
parent
613cfa2aa9
commit
d366168530
1 changed files with 13 additions and 7 deletions
|
|
@ -277,18 +277,24 @@ ColumnLayout {
|
|||
contentWidth: width - ScrollBar.vertical.width
|
||||
flickableDirection: Flickable.VerticalFlick
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: ContactEditStyle.content.color
|
||||
}
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
SmartConnect {
|
||||
Component.onCompleted: this.connect(_vcard, 'onVcardUpdated', function () {
|
||||
Connections {
|
||||
target: _vcard
|
||||
|
||||
onVcardUpdated: {
|
||||
addresses.setData(_vcard.sipAddresses)
|
||||
companies.setData(_vcard.companies)
|
||||
emails.setData(_vcard.emails)
|
||||
urls.setData(_vcard.urls)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: ContactEditStyle.content.color
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue