Commit 5cfa2c8e authored by Ronan Abhamon's avatar Ronan Abhamon

unstable

parent 7495b4aa
......@@ -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();
}
......
......@@ -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) {
......
......@@ -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.
......
......@@ -72,7 +72,7 @@ ColumnLayout {
icon: 'contact_edit'
iconSize: ConversationStyle.bar.actions.edit.iconSize
onClicked: console.log('clicked!!!') // TODO.
onClicked: window.setView('Contact')
}
ActionButton {
......
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