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:
parent
6b72c62c5f
commit
b181263b9f
2 changed files with 63 additions and 74 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue