LibGUI: Teach IconView to use AbstractView::move_cursor()

This makes it possible to manipulate the cursor programmatically via
the AbstractView interface.
This commit is contained in:
Andreas Kling
2020-09-01 14:43:16 +02:00
parent 22265f1445
commit 72443bd1ab
2 changed files with 61 additions and 77 deletions

View File

@@ -64,6 +64,8 @@ private:
virtual void keydown_event(KeyEvent&) override;
virtual void drag_move_event(DragEvent&) override;
virtual void move_cursor(CursorMovement, SelectionUpdate) override;
struct ItemData {
Gfx::IntRect text_rect;
Gfx::IntRect icon_rect;