mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:18:12 +00:00
LibGUI: Simplify ListView hover highlighting
Instead of tracking the last valid hovered index, just hook the mousemove event and make the cursor follow the hover when it changes.
This commit is contained in:
parent
274a09246b
commit
4ba12e9c23
5 changed files with 10 additions and 30 deletions
|
@ -69,6 +69,7 @@ private:
|
|||
virtual void paint_event(PaintEvent&) override;
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
virtual void resize_event(ResizeEvent&) override;
|
||||
virtual void mousemove_event(MouseEvent&) override;
|
||||
|
||||
Gfx::IntRect content_rect(int row) const;
|
||||
int item_count() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue