Qt 4.8
|
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection. More...
#include <qabstracttextdocumentlayout.h>
Public Variables | |
QTextCursor | cursor |
the selection's cursor More... | |
QTextCharFormat | format |
the format of the selection More... | |
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.
A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format .
Definition at line 71 of file qabstracttextdocumentlayout.h.
QAbstractTextDocumentLayout::Selection::cursor |
the selection's cursor
The default value is a null cursor.
Definition at line 73 of file qabstracttextdocumentlayout.h.
Referenced by QTextDocumentLayoutPrivate::drawBlock(), QTextDocumentLayoutPrivate::drawFrame(), QTextControl::getPaintContext(), QPlainTextEdit::paintEvent(), and QTextControl::setExtraSelections().
QAbstractTextDocumentLayout::Selection::format |
the format of the selection
The default value is QTextFormat::InvalidFormat.
Definition at line 74 of file qabstracttextdocumentlayout.h.
Referenced by QTextDocumentLayoutPrivate::drawBlock(), QTextControl::getPaintContext(), QPlainTextEdit::paintEvent(), and QTextControl::setExtraSelections().