mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 08:49:19 +00:00
unstable
This commit is contained in:
parent
7495b4aadc
commit
5cfa2c8e4a
4 changed files with 13 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue