LibWeb+UI/Qt: Display 'title' tooltips only when the mouse stops moving

Now instead of sending the position in which the user entered the
tooltip area, send just the text, and let the chrome figure out how to
display it.

In the case of Qt, wait for 600 milliseconds of no mouse movement, then
display it under the mouse cursor.
This commit is contained in:
circl 2024-07-02 14:16:24 +02:00 committed by Andreas Kling
commit 0f7623dd83
Notes: sideshowbarker 2024-07-17 08:43:11 +09:00
12 changed files with 34 additions and 21 deletions

View file

@ -55,7 +55,7 @@ private:
virtual void did_layout(u64 page_id, Gfx::IntSize) override;
virtual void did_change_title(u64 page_id, ByteString const&) override;
virtual void did_change_url(u64 page_id, URL::URL const&) override;
virtual void did_enter_tooltip_area(u64 page_id, Gfx::IntPoint, ByteString const&) override;
virtual void did_enter_tooltip_area(u64 page_id, ByteString const&) override;
virtual void did_leave_tooltip_area(u64 page_id) override;
virtual void did_hover_link(u64 page_id, URL::URL const&) override;
virtual void did_unhover_link(u64 page_id) override;