mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibGUI/TreeView: Select parent on collapse
When collapsing a tree that contains the current selection, the parent node becomes selected instead.
This commit is contained in:
parent
67a5e9f018
commit
7a4445a1fe
3 changed files with 16 additions and 0 deletions
|
@ -26,6 +26,7 @@ public:
|
|||
void* internal_data() const { return m_internal_data; }
|
||||
|
||||
ModelIndex parent() const;
|
||||
bool is_parent_of(const ModelIndex&) const;
|
||||
|
||||
bool operator==(const ModelIndex& other) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue