summaryrefslogtreecommitdiffstats
path: root/app/Dialer.qml
diff options
context:
space:
mode:
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)
}
}
}