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

QRectF QPlainTextEdit::blockBoundingGeometry ( const QTextBlock block  )  const [protected]

Returns the bounding rectangle of the text block in content coordinates. Translate the rectangle with the contentOffset() to get visual coordinates on the viewport.

See also:
firstVisibleBlock(), blockBoundingRect()

Definition at line 2862 of file qplaintextedit.cpp.

Referenced by scrollContentsBy().

    Q_D(const QPlainTextEdit);
    return d->control->blockBoundingRect(block);

Generated by  Doxygen 1.6.0   Back to index