Delete declarative contact after remove it from the model.
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>
Fri, 7 Mar 2014 18:11:27 +0000 (15:11 -0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 24 Apr 2014 15:01:55 +0000 (17:01 +0200)
commitcfc2068c19e4980e9a173238c85da2e74c9d7f31
treeddcf561b9cb293c2471d0c213bc2b82defcdb3a2
parentb5017b863eaeb2ff5ced656488103b977e35dcbb
Delete declarative contact after remove it from the model.

Keep any contact fetched by the model update even if the contact is not in the model.
Delete any fetched contact if it get removed from the engine.

Change-Id: I646cc2d53ca7bb25b107f44c9517c0aac6814422
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
src/imports/contacts/qdeclarativecontactmodel.cpp
src/imports/contacts/qdeclarativecontactmodel_p.h