summaryrefslogtreecommitdiffstats
path: root/app/Dialer.qml
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-06-22 15:27:59 -0400
committerMatt Porter <mporter@konsulko.com>2018-06-22 16:43:10 -0400
commita7fb49c552a96a4f4709363a708b722e66fd343e (patch)
tree41c51bfac487c25fdbaf19763e92dec8f509a97b /app/Dialer.qml
parent01a84d2d570eddcfaf0d38117dc0c20b6b25fed3 (diff)
Add support for PBAP RecentCallModel
Replace static data and history currently used in phone app with data populated the the BT PBAP binding. This data is parsed and exposed to QML by the RecentCallModel in libqtappfw. The recent call tab and the mini-recent call bar in the dialer tab now show actual call history from the connected mobile phone. Bug-AGL: SPEC-1436 Change-Id: I287a1daf54ee88985aac85d71215f7fa4e766556 Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/Dialer.qml')
-rw-r--r--app/Dialer.qml9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/Dialer.qml b/app/Dialer.qml
index 29f251f..d88ddcc 100644
--- a/app/Dialer.qml
+++ b/app/Dialer.qml
@@ -160,7 +160,6 @@ Item {
var contact = {'name': name.text, 'number': number.text}
if (contact.name === '')
contact.name = 'Unknown'
- history.insert(0, contact)
if (telephony.callState == "incoming") {
telephony.answer()
} else {
@@ -192,7 +191,7 @@ Item {
Layout.preferredHeight: 130
orientation: Qt.Horizontal
clip: true
- model: CallHistoryModel { id: history }
+ model: RecentCallModel
delegate: MouseArea {
width: root.width / 2.5
@@ -207,17 +206,17 @@ Item {
Label {
Layout.fillWidth: true
color: '#59FF7F'
- text: model.name
+ text: model.modelData.name
}
Label {
Layout.fillWidth: true
font.pixelSize: 30
- text: model.number
+ text: model.modelData.number
}
}
}
- onClicked: root.call(model)
+ onClicked: root.call(model.modelData.name, model.modelData.number)
}
}
}