83 headerLabels <<
tr(
"Lists");
90 previousItems.
clear();
106 parentItems.
append(parentItem);
107 previousItems.
append(lastItem);
109 parentItem = lastItem;
119 while (parentItem != 0 && listStructures.
last() !=
list) {
121 parentItem = parentItems.
takeLast();
122 lastItem = previousItems.
takeLast();
156 listFormat =
list->format();
160 cursor.insertList(listFormat);
void highlightListItems()
The QKeySequence class encapsulates a key sequence as used by shortcuts.
qsizetype count() const noexcept
void append(parameter_type t)
void setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
QTextBlockFormat blockFormat() const
Returns the QTextBlockFormat that describes block-specific properties.
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
int position() const
Returns the index of the block's first character within the document.
QString text() const
Returns the block's contents as plain text.
QTextList * textList() const
If the block represents a list item, returns the list that the item belongs to; otherwise returns \nu...
\reentrant \inmodule QtGui
void setPosition(int pos, MoveMode mode=MoveAnchor)
Moves the cursor to the absolute position in the document specified by pos using a MoveMode specified...
bool movePosition(MoveOperation op, MoveMode=MoveAnchor, int n=1)
Moves the cursor by performing the given operation n times, using the specified mode,...
void setBlockFormat(const QTextBlockFormat &format)
Sets the block format of the current block (or all blocks that are contained in the selection) to for...
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QTextCursor textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor.
void setDocument(QTextDocument *document)
void setBackground(const QBrush &brush)
Sets the brush use to paint the document's background to the brush specified.
void setStyle(Style style)
Sets the list format's style.
void setIndent(int indent)
Sets the list format's indentation.
int indent() const
Returns the list format's indentation.
QSet< QString >::iterator it