Commit d3661685 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Main/ContactEdit): use `Connections` component

parent 613cfa2a
...@@ -277,18 +277,24 @@ ColumnLayout { ...@@ -277,18 +277,24 @@ ColumnLayout {
contentWidth: width - ScrollBar.vertical.width contentWidth: width - ScrollBar.vertical.width
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
Rectangle { // -----------------------------------------------------------------------
anchors.fill: parent
color: ContactEditStyle.content.color Connections {
} target: _vcard
SmartConnect { onVcardUpdated: {
Component.onCompleted: this.connect(_vcard, 'onVcardUpdated', function () {
addresses.setData(_vcard.sipAddresses) addresses.setData(_vcard.sipAddresses)
companies.setData(_vcard.companies) companies.setData(_vcard.companies)
emails.setData(_vcard.emails) emails.setData(_vcard.emails)
urls.setData(_vcard.urls) urls.setData(_vcard.urls)
}) }
}
// -----------------------------------------------------------------------
Rectangle {
anchors.fill: parent
color: ContactEditStyle.content.color
} }
ColumnLayout { ColumnLayout {
......
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