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 ...@@ -60,7 +60,7 @@ bool ContactsListModel::removeRows (int row, int count, const QModelIndex &paren
m_list.removeAt(row); m_list.removeAt(row);
m_friend_to_contact.remove(contact->m_linphone_friend.get()); 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(); contact->deleteLater();
} }
......
...@@ -16,6 +16,7 @@ TimelineModel::TimelineModel (const ContactsListModel *contacts_list) { ...@@ -16,6 +16,7 @@ TimelineModel::TimelineModel (const ContactsListModel *contacts_list) {
init_entries(); init_entries();
// Invalidate model if a contact is removed. // Invalidate model if a contact is removed.
// Better than compare each sip address.
connect( connect(
contacts_list, &ContactsListModel::rowsRemoved, this, contacts_list, &ContactsListModel::rowsRemoved, this,
[this](const QModelIndex &, int, int) { [this](const QModelIndex &, int, int) {
......
...@@ -215,6 +215,16 @@ ColumnLayout { ...@@ -215,6 +215,16 @@ ColumnLayout {
elide: Text.ElideRight elide: Text.ElideRight
font.bold: true font.bold: true
text: $contact.username text: $contact.username
MouseArea {
anchors.fill: parent
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
hoverEnabled: true
onClicked: window.setView('Contact')
}
} }
// Container. // Container.
......
...@@ -72,7 +72,7 @@ ColumnLayout { ...@@ -72,7 +72,7 @@ ColumnLayout {
icon: 'contact_edit' icon: 'contact_edit'
iconSize: ConversationStyle.bar.actions.edit.iconSize iconSize: ConversationStyle.bar.actions.edit.iconSize
onClicked: console.log('clicked!!!') // TODO. onClicked: window.setView('Contact')
} }
ActionButton { 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