Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QRectF::translate ( qreal  dx,
qreal  dy 
) [inline]

Moves the rectangle dx along the x-axis and dy along the y-axis, relative to the current position. Positive values move the rectangle to the right and downwards.

See also:
moveTopLeft(), moveTo(), translated()

Definition at line 717 of file qrect.h.

Referenced by QRasterPaintEngine::drawImage(), and QRasterPaintEngine::drawTiledPixmap().

{
    xp += dx;
    yp += dy;
}


Generated by  Doxygen 1.6.0   Back to index