1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

LibGUI: Support inline editing in GUI::IconView

IconView now responds to the editing key (F2) if the view is editable.
It does feel a little bit weird to have content_rect() return the text
rect for an item, and not the whole item rect. This internal API could
probably be better.
This commit is contained in:
Andreas Kling 2020-09-24 11:40:19 +02:00
parent 7d30cf7122
commit ece555b684
2 changed files with 17 additions and 0 deletions

View file

@ -49,6 +49,7 @@ public:
void set_model_column(int column) { m_model_column = column; }
virtual ModelIndex index_at_event_position(const Gfx::IntPoint&) const override;
virtual Gfx::IntRect content_rect(const ModelIndex&) const override;
virtual void select_all() override;