[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: koffice/krita/ui/canvas
From:       "C. Boemann" <cbo () boemann ! dk>
Date:       2010-02-01 22:14:15
Message-ID: 201002012314.15922.cbo () boemann ! dk
[Download RAW message or body]

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
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic