1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibGUI: Add TreeView::expand_all_parents_of(ModelIndex)

This does exactly what it sounds like. :^)
This commit is contained in:
Andreas Kling 2020-09-18 18:38:27 +02:00
parent 76ae47c6ed
commit 3bccd99fe9
2 changed files with 19 additions and 0 deletions

View file

@ -44,6 +44,8 @@ public:
void expand_tree(const ModelIndex& root = {});
void collapse_tree(const ModelIndex& root = {});
void expand_all_parents_of(const ModelIndex&);
Function<void(const ModelIndex&, const bool)> on_toggle;
protected: