aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/rosterItemModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/GuiClient/rosterItemModel.cpp')
-rw-r--r--examples/GuiClient/rosterItemModel.cpp9
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());
+ }
+}