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

bool QPlainTextEdit::centerOnScroll [read, write]

whether the cursor should be centered on screen

If set to true, the plain text edit scrolls the document vertically to make the cursor visible at the center of the viewport. This also allows the text edit to scroll below the end of the document. Otherwise, if set to false, the plain text edit scrolls the smallest amount possible to ensure the cursor is visible. The same algorithm is applied to any new line appended through appendPlainText().

The default is false.

See also:
centerCursor(), ensureCursorVisible()

Definition at line 90 of file qplaintextedit.h.

Referenced by paintEvent().


Generated by  Doxygen 1.6.0   Back to index