This commit is contained in:
Ronan Abhamon 2016-11-23 17:19:12 +01:00
parent 7495b4aadc
commit 5cfa2c8e4a
4 changed files with 13 additions and 2 deletions

View file

@ -60,7 +60,7 @@ bool ContactsListModel::removeRows (int row, int count, const QModelIndex &paren
m_list.removeAt(row);
m_friend_to_contact.remove(contact->m_linphone_friend.get());
// m_linphone_friends->removeFriend(contact->m_linphone_friend);
m_linphone_friends->removeFriend(contact->m_linphone_friend);
contact->deleteLater();
}

View file

@ -16,6 +16,7 @@ TimelineModel::TimelineModel (const ContactsListModel *contacts_list) {
init_entries();
// Invalidate model if a contact is removed.
// Better than compare each sip address.
connect(
contacts_list, &ContactsListModel::rowsRemoved, this,
[this](const QModelIndex &, int, int) {

View file

@ -215,6 +215,16 @@ ColumnLayout {
elide: Text.ElideRight
font.bold: true
text: $contact.username
MouseArea {
anchors.fill: parent
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
hoverEnabled: true
onClicked: window.setView('Contact')
}
}
// Container.

View file

@ -72,7 +72,7 @@ ColumnLayout {
icon: 'contact_edit'
iconSize: ConversationStyle.bar.actions.edit.iconSize
onClicked: console.log('clicked!!!') // TODO.
onClicked: window.setView('Contact')
}
ActionButton {