From 18f8e2db919b58f5aba68e6f0ff0890bea6529b8 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Tue, 19 Oct 2010 15:18:29 +0000 Subject: removing contact should remove the contact from the UI as well --- examples/GuiClient/rosterItemModel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples/GuiClient/rosterItemModel.cpp') diff --git a/examples/GuiClient/rosterItemModel.cpp b/examples/GuiClient/rosterItemModel.cpp index a7bd7c1f..8ed1d457 100644 --- a/examples/GuiClient/rosterItemModel.cpp +++ b/examples/GuiClient/rosterItemModel.cpp @@ -109,3 +109,12 @@ void rosterItemModel::clear() QStandardItemModel::clear(); m_jidRosterItemMap.clear(); } + +void rosterItemModel::removeRosterEntry(const QString& bareJid) +{ + rosterItem* item = getRosterItemFromBareJid(bareJid); + if(item) + { + removeRow(item->row()); + } +} -- cgit v1.2.3