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

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

Returns the bounding rectangle of the text block in the block's own coordinates.

See also:

Definition at line 2873 of file qplaintextedit.cpp.

References QPlainTextDocumentLayout::blockBoundingRect(), document(), QTextDocument::documentLayout(), and QObject::qobject_cast().

Referenced by paintEvent().

    QPlainTextDocumentLayout *documentLayout = qobject_cast<QPlainTextDocumentLayout*>(document()->documentLayout());
    return documentLayout->blockBoundingRect(block);

Generated by  Doxygen 1.6.0   Back to index