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

void QRect::moveTop ( int  y  )  [inline]

Moves the rectangle vertically, leaving the rectangle's top edge at the given y coordinate. The rectangle's size is unchanged.

See also:
top(), setTop(), moveBottom()

Definition at line 332 of file qrect.h.

Referenced by QListView::moveCursor(), moveTopLeft(), moveTopRight(), QWidget::restoreGeometry(), QComboBox::showPopup(), QPlastiqueStyle::subControlRect(), and QCleanlooksStyle::subControlRect().

{ y2 += (pos - y1); y1 = pos; }

Generated by  Doxygen 1.6.0   Back to index