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

This commit is contained in:
Ronan Abhamon 2017-02-20 12:02:42 +01:00
parent 613cfa2aa9
commit d366168530

View file

@ -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 {