1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

LibGUI: Add on_toggle function to TreeView

This adds a function to expose the index and open/close state
of expandible nodes in TreeView.
This commit is contained in:
thankyouverycool 2020-07-07 07:12:12 -04:00 committed by Andreas Kling
parent 27109c3467
commit cbf3c2caeb
2 changed files with 7 additions and 2 deletions

View file

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