Commit 98c1ff6e authored by Erwan Tulou's avatar Erwan Tulou

skins2: add a method to flag a whole subtree for deletion

parent 9b6c3231
......@@ -405,3 +405,11 @@ VarTree::Iterator VarTree::firstLeaf()
return b;
}
void VarTree::cascadeDelete()
{
m_deleted = true;
for( Iterator it = begin(); it != end(); ++it )
{
it->cascadeDelete();
}
}
......@@ -165,6 +165,9 @@ public:
/// Ensure an item is expanded
void ensureExpanded( VarTree::Iterator );
/// flag a whole subtree for deletion
void cascadeDelete();
/// Get depth (root depth is 0)
int depth()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment