mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user