roster done
diff --git a/digesttreescene.cpp b/digesttreescene.cpp
index b79962e..5364f0f 100644
--- a/digesttreescene.cpp
+++ b/digesttreescene.cpp
@@ -71,9 +71,21 @@
emit replot();
}
-void
+QStringList
DigestTreeScene::getRosterList()
{
+ QStringList rosterList;
+ RosterIterator it(m_roster);
+ while(it.hasNext())
+ {
+ it.next();
+ DisplayUserPtr p = it.value();
+ if (p != DisplayUserNullPtr)
+ {
+ rosterList << "- " + p->getNick();
+ }
+ }
+ return rosterList;
}
void
@@ -95,6 +107,7 @@
QRectF rectBR = nickRectItem->boundingRect();
QRectF nickBR = nickItem->boundingRect();
nickItem->setPos(rectBR.x() + (rectBR.width() - nickBR.width())/2, rectBR.y() + 5);
+ emit rosterChanged();
}
reDrawNode(p, Qt::red);