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

void QRectF::translate ( const QPointF offset  )  [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Moves the rectangle {offset}.{QPointF::x()}{x()} along the x axis and {offset}.{QPointF::y()}{y()} along the y axis, relative to the current position.

Definition at line 723 of file qrect.h.

References QPointF::x(), and QPointF::y().

{
    xp += p.x();
    yp += p.y();
}


Generated by  Doxygen 1.6.0   Back to index