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

void QRect::moveTopLeft ( const QPoint position  )  [inline]

Moves the rectangle, leaving the top-left corner at the given position. The rectangle's size is unchanged.

See also:
setTopLeft(), moveTop(), moveLeft()

Definition at line 347 of file qrect.h.

References moveLeft(), moveTop(), QPoint::x(), and QPoint::y().

Referenced by QSizeGrip::mouseMoveEvent(), QAccessibleToolButton::rect(), QComboBox::showPopup(), and QCommonStyle::subElementRect().

{
    moveLeft(p.x());
    moveTop(p.y());
}


Generated by  Doxygen 1.6.0   Back to index