Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
98c1ff6e
Commit
98c1ff6e
authored
Aug 10, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: add a method to flag a whole subtree for deletion
parent
9b6c3231
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
modules/gui/skins2/utils/var_tree.cpp
modules/gui/skins2/utils/var_tree.cpp
+8
-0
modules/gui/skins2/utils/var_tree.hpp
modules/gui/skins2/utils/var_tree.hpp
+3
-0
No files found.
modules/gui/skins2/utils/var_tree.cpp
View file @
98c1ff6e
...
...
@@ -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
();
}
}
modules/gui/skins2/utils/var_tree.hpp
View file @
98c1ff6e
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment