koffice/krita/ui/canvas

C. Boemann cbo at boemann.dk
Mon Feb 1 23:14:15 CET 2010


On Monday 01 February 2010 23:11:50 Dmitry Kazakov wrote:
> 
> QPointF KisImage::pixelToDocument(const QPoint &pixelCoord) 
const
> {
>     return QPointF((pixelCoord.x() + 0.5) / xRes(), (pixelCoord.y() 
+ 0.5)
>  / yRes());
> }
> 
> Now i doubt it is called from somewhere. But it is present there. 
Maybe
>  just remove it then? QPoint->QPointF will be translated 
automatically.
I certainly hope it's still called as it's how we convert from pixel 
coords to flake coords. And the fact that we divide by xRes and 
yRes respectively is certinly reason enough to not just replace with 
QPoit->QPointF


More information about the kimageshop mailing list