Diffusion Krita 2345024a49ba

Pass QPointF to widget->shape conversion function

Authored by mwein on Jan 8 2020, 1:54 AM.

Description

Pass QPointF to widget->shape conversion function

There is no reason to truncate values when QMouseEvent provides
a QPointF and subsequent calculation are all float too.

NOTE: Qt 5.12 does not appear to calculate QMouseEvent::localPos() with with fractional precision yet even though it definitely should with fractional UI scaling, and windowPos() does so.

Details