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

void QRectF::setTop ( qreal  y  )  [inline]

Sets the top edge of the rectangle to the given y coordinate. May change the height, but will never change the bottom edge of the rectangle.

Equivalent to setY().

See also:
top(), moveTop()

Definition at line 675 of file qrect.h.

Referenced by setTopLeft(), setTopRight(), and QtRectFPropertyManager::setValue().

{ qreal diff = pos - yp; yp += diff; h -= diff; }

Generated by  Doxygen 1.6.0   Back to index