LibGUI: Add AbstractView::editing_rect() to allow custom editing rects

This allows view classes to customize the editing rect for an index.
This commit is contained in:
Andreas Kling 2021-07-10 16:50:24 +02:00
commit 148e72bfa0
Notes: sideshowbarker 2024-07-18 09:25:03 +09:00
2 changed files with 3 additions and 1 deletions

View file

@ -89,6 +89,8 @@ public:
virtual void did_update_selection();
virtual Gfx::IntRect content_rect(const ModelIndex&) const { return {}; }
virtual Gfx::IntRect editing_rect(ModelIndex const& index) const { return content_rect(index); }
virtual ModelIndex index_at_event_position(const Gfx::IntPoint&) const { return {}; }
void begin_editing(const ModelIndex&);
void stop_editing();