1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 08:47:35 +00:00

Ladybird/Qt: Move positional device pixel ratio adjustment to a helper

The code to convert a Gfx::IntPoint to a QPoint adjusted for the device
pixel ratio is a bit of a mouthful, and will be needed outside of Tab,
so move it to a helper that can be reused.
This commit is contained in:
Timothy Flynn 2024-03-10 22:15:06 -04:00 committed by Andreas Kling
parent bc42144642
commit b5e8f0ebfe
3 changed files with 12 additions and 5 deletions

View file

@ -81,6 +81,8 @@ public:
using ViewImplementation::client;
QPoint map_point_to_global_position(Gfx::IntPoint) const;
signals:
void urls_dropped(QList<QUrl> const&);