summaryrefslogtreecommitdiffstats
path: root/app/ContactsView.qml
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-05-21 12:32:37 -0400
committerMatt Porter <mporter@konsulko.com>2018-05-22 11:34:02 +0000
commit87c3378a8b716b896ca0cb72ccfb2e13f748058a (patch)
treeaa2775dbd93d25ab05d7ec055e9d6868c6e886dc /app/ContactsView.qml
parent361f599d0786b0b2729350a622c2a32a6a4862b5 (diff)
phone: add discrete call function parameters
Adjust the call function to accept discrete parameters for the name and phone number to dial. This prepares the app for a reworked UI where the contact model is not always used to invoke a phone call. Bug-AGL: SPEC-1435 Change-Id: I178a7eb6c4854f755abd94234a648f861d5c1326 Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/ContactsView.qml')
-rw-r--r--app/ContactsView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/ContactsView.qml b/app/ContactsView.qml
index 8d37590..cab8f09 100644
--- a/app/ContactsView.qml
+++ b/app/ContactsView.qml
@@ -37,7 +37,7 @@ Item {
}
}
- signal call(var contact)
+ signal call(var cname, var cnumber)
signal cancel
ListView {
@@ -88,7 +88,7 @@ Item {
}
}
onClicked: {
- root.call(model)
+ root.call(model.name, model.numbers.get(0).number)
}
}
section.property: 'name'