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:
parent
27109c3467
commit
cbf3c2caeb
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue