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
commit b181263b9f
Notes: sideshowbarker 2024-07-19 14:54:06 +09:00
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;