diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-19 15:18:29 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-19 15:18:29 +0000 |
| commit | 18f8e2db919b58f5aba68e6f0ff0890bea6529b8 (patch) | |
| tree | 434bd1a41d7b535efd351cf233e0e8ea3d348da6 /examples/GuiClient/rosterItemModel.cpp | |
| parent | 2a548516eaec820dcaaa628d639c9e9cabbf077d (diff) | |
| download | qxmpp-18f8e2db919b58f5aba68e6f0ff0890bea6529b8.tar.gz | |
removing contact should remove the contact from the UI as well
Diffstat (limited to 'examples/GuiClient/rosterItemModel.cpp')
| -rw-r--r-- | examples/GuiClient/rosterItemModel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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()); + } +} |
