1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibGUI: Add TreeViewModel as a simpler interface for building TreeViews

Having to subclass GUI::Model for even the simplest type of hand-built
TreeView makes them a bit unpleasant to work with at the moment. :^)

This adds such a GUI::Model subclass that is specifically designed for
adding nodes to a TreeView manually, supporting text and an optional
icon by default, and allowing for further data when subclassing the Node
class.
This commit is contained in:
Linus Groh 2022-05-12 21:36:15 +02:00
parent 80174439a9
commit 5bb38296b1
3 changed files with 174 additions and 0 deletions

View file

@ -106,6 +106,7 @@ set(SOURCES
ToolbarContainer.cpp
Tray.cpp
TreeView.cpp
TreeViewModel.cpp
UndoStack.cpp
ValueSlider.cpp
Variant.cpp