Commit graph

5 commits

Author SHA1 Message Date
Andreas Kling d396766058 LibGUI: Require a model pointer for ModelIndex::is_valid()
This was not an issue anywhere in practice, but let's make it part of
the definition of a valid model index.
2020-08-16 16:44:09 +02:00
Andreas Kling f882424869 LibGUI: Add ModelIndex::data(ModelRole)
This is a convenience API that makes accessing model data easier.
2020-08-16 16:44:09 +02:00
Andreas Kling 21bb269919 LibGUI: Add ModelIndex::model()
Let's expose this so we can use it in some assertions later.
2020-08-13 21:09:39 +02:00
Andreas Kling 2143da6434 LibGUI: Add forwarding header
This patch adds <LibGUI/Forward.h> and uses it a bunch.
It also dragged various header dependency reduction changes into it.
2020-02-16 09:41:56 +01:00
Andreas Kling 6a9cc66b97 LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
Renamed from Libraries/LibGUI/GModelIndex.h (Browse further)