1
Fork 0
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:
Jelle Raaijmakers 2021-05-31 23:47:01 +02:00 committed by Andreas Kling
parent 67a5e9f018
commit 7a4445a1fe
3 changed files with 16 additions and 0 deletions

View file

@ -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
{