From 581b5a7f16a1c399958742a3b103f47ef9518662 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 2 Aug 2018 23:15:01 +0200 Subject: Addressbook support for the contact composer --- views/people/qml/PersonComposer.qml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'views/people/qml/PersonComposer.qml') diff --git a/views/people/qml/PersonComposer.qml b/views/people/qml/PersonComposer.qml index f56532f8..b409c3d6 100644 --- a/views/people/qml/PersonComposer.qml +++ b/views/people/qml/PersonComposer.qml @@ -194,7 +194,7 @@ Flickable { } } - Column{ + Column { id: address width: root.width - Kube.Units.largeSpacing @@ -226,6 +226,32 @@ Flickable { backgroundColor: "white" } } + + Column{ + width: root.width - Kube.Units.largeSpacing + spacing: Kube.Units.smallSpacing + + Kube.Label { + text: "Addressbook" + } + Kube.ComboBox { + width: Kube.Units.gridUnit * 20 + + model: Kube.EntityModel { + id: addressbookModel + type: "addressbook" + //TODO + //accountId: "" + roles: ["name", "color"] + } + textRole: "name" + Layout.fillWidth: true + onCurrentIndexChanged: { + contactController.addressbook = addressbookModel.data(currentIndex).object + } + } + } + Item { width: parent.width height: Kube.Units.largeSpacing -- cgit v1.2.3