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

void QPlainTextEdit::centerCursor (  )  [slot]

Scrolls the document in order to center the cursor vertically.

See also:
ensureCursorVisible(), centerOnScroll

Definition at line 2819 of file qplaintextedit.cpp.

References textCursor().

{
    Q_D(QPlainTextEdit);
    d->ensureVisible(textCursor().position(), true, true);
}


Generated by  Doxygen 1.6.0   Back to index