Exemplo n.º 1
0
QRectF KisDuplicateOpSettings::duplicateOutlineRect(const QPointF& pos, KisImageSP image) const
{
    // Compute the rectangle for the offset
    QRectF rect2 = QRectF( -5, -5, 10, 10);
    if(m_isOffsetNotUptodate)
    {
        rect2.translate(m_position);
    } else {
        rect2.translate(- m_offset + image->documentToPixel( pos) );
    }
    return image->pixelToDocument(rect2);
}