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

QRectF QRectF::translated ( const QPointF offset  )  const [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns a copy of the rectangle that is translated {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 744 of file qrect.h.

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

{ return QRectF(xp + p.x(), yp + p.y(), w, h); }


Generated by  Doxygen 1.6.0   Back to index