Fix TreeItem button handling

- Fix incorrect tooltip and `get_button_id_at_position()` when column
  title is visible and when RTL layout is used
- Take `button_margin`, `h_separation`, and `item_margin` into account
This commit is contained in:
Haoyu Qiu
2024-04-18 15:23:31 +08:00
parent 2543d192c3
commit c78e9c3fbd
2 changed files with 107 additions and 82 deletions

View File

@ -645,6 +645,8 @@ private:
TreeItem *_find_item_at_pos(TreeItem *p_item, const Point2 &p_pos, int &r_column, int &h, int &section) const;
void _find_button_at_pos(const Point2 &p_pos, TreeItem *&r_item, int &r_column, int &r_index) const;
/* float drag_speed;
float drag_accum;