commit | 591e8c3bb6d5d4cc124f949407cb73c7ca298ff9 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Sep 26 11:57:50 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Sep 26 11:57:50 2012 -0700 |
tree | e3bfd66ebc65f9fc14e493335f53c6199c89d729 | |
parent | 78b5f638bef0506a8e13f6755b3d4d13bb51f673 [diff] [blame] |
remove node when one leaves
diff --git a/digesttreescene.cpp b/digesttreescene.cpp index 30c087e..50d170b 100644 --- a/digesttreescene.cpp +++ b/digesttreescene.cpp
@@ -113,6 +113,13 @@ m_roster.clear(); } +bool +DigestTreeScene::removeNode(const QString prefix) +{ + int removedCount = m_roster.remove(prefix); + return (removedCount > 0); +} + void DigestTreeScene::plot(QString digest) {