On Sun, Jan 31, 2010 at 2:53 AM, Adrian Page
<> wrote:
Dmitry Kazakov wrote:
> I thing this should be reverted according to Qt's QRect tradition, i.e.
> (5,7)->(5.0,7.0). Or change ALL the Krita's code that uses
> QRectF::toAlignedRect() or QRectF(intRect) to a new type of conversion.
> Other way we'll dig a deep grave for ourselves using two completely
> different coordinate systems throughout the code.
This is the way krita has worked for the last however many years.
Well, not everywhere. Please take a look into KisImage::documentToIntPixel(). It uses QRectF::toAlignedRect(). So it does just the opposite to what you are saying.