1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

GTreeView: Factor paint traversal into a shared function.

This way it can be used by hit testing as well, guaranteeing that everything
stays consistent.
This commit is contained in:
Andreas Kling 2019-03-29 17:30:27 +01:00
parent 6b72c62c5f
commit b181263b9f
2 changed files with 63 additions and 74 deletions

View file

@ -22,6 +22,9 @@ private:
int icon_size() const { return 16; }
int icon_spacing() const { return 4; }
template<typename Callback>
void traverse_in_paint_order(Callback) const;
struct MetadataForIndex;
MetadataForIndex& ensure_metadata_for_index(const GModelIndex&) const;