Commit 3f1bfac8 authored by Martin Klapetek's avatar Martin Klapetek

[dialer] Pass the phone number to dial through a property

parent 3bde0c3a
......@@ -62,6 +62,7 @@ Item {
id: contactsList
property bool delegateSelected: false
property string numberToCall
section.property: "display"
......@@ -101,9 +102,11 @@ Item {
if (contactsList.delegateSelected) {
contactsList.currentIndex = -1;
contactsList.delegateSelected = false;
contactsList.numberToCall = "";
} else {
contactsList.currentIndex = index;
contactsList.delegateSelected = true;
contactsList.numberToCall = model.phoneNumber;
}
contactsList.toggleOverlayButtons(contactsList.delegateSelected);
......@@ -214,7 +217,7 @@ Item {
MouseArea {
anchors.fill: parent
//TODO: needs the proper number
onClicked: call(model.phoneNumber)
onClicked: call(contactsList.numberToCall)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment