Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QTextBlockGroup Class Reference

The QTextBlockGroup class groups together a list of QTextBlocks within a document. More...

#include <QTextBlockGroup>

Inherits QTextObject.

Inherited by QTextList.

List of all members.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QTextBlockGroup class groups together a list of QTextBlocks within a document.

QTextBlocks can be inserted with blockInserted() and removed with blockRemoved(). If a block's format is changed blockFormatChanged() is called. The list of blocks in the group is returned by blockList().

The block group maintains an up-to-date list of the blocks which belong to the group even when editing takes place.


Member Function Documentation

QTextBlockGroup::QTextBlockGroup ( QTextDocument * doc )   [protected]

Creates a new new block group for the document doc.

Warning: This function should only be called from QTextDocument::createObject().

QTextBlockGroup::~QTextBlockGroup ()   [protected]

Destroys this block group; the blocks are not deleted, they simply don't belong to this block anymore.

void QTextBlockGroup::blockFormatChanged ( const QTextBlock & block )   [virtual protected]

This function is called whenever the specified block of text (which is part of this group), is changed. The base class implementation does nothing.

void QTextBlockGroup::blockInserted ( const QTextBlock & block )   [virtual protected]

Appends the given block to the end of the group.

Warning: If you reimplement this function you must call the base class implementation.

QList<QTextBlock> QTextBlockGroup::blockList () const   [protected]

Returns a (possibly empty) list of all the blocks that are part of the block group.

void QTextBlockGroup::blockRemoved ( const QTextBlock & block )   [virtual protected]

Removes the given block from the group; the block itself is not deleted, it simply isn't a member of this group anymore.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1