Indenter Class | Extending Qt Creator Manual

Extending Qt Creator Manual | Indenter

Extending Qt Creator Manual 4.4.1

# Indenter Class

(TextEditor::Indenter)

- List of all members, including inherited members

## Public Functions

| Indenter()
virtual | ~Indenter()
virtual void | indent(QTextDocument *doc, const QTextCursor &cursor, const QChar &typedChar, const TabSettings &tabSettings)
virtual void | indentBlock(QTextDocument *doc, const QTextBlock &block, const QChar &typedChar, const TabSettings &tabSettings)
virtual int | indentFor(const QTextBlock &block, const TextEditor::TabSettings &tabSettings)
virtual IndentationForBlock | indentationForBlocks(const QVector<QTextBlock> &blocks, const TextEditor::TabSettings &tabSettings)
virtual void | invalidateCache(QTextDocument *doc)
virtual bool | isElectricCharacter(const QChar &ch) const
virtual void | reindent(QTextDocument *doc, const QTextCursor &cursor, const TabSettings &tabSettings)
virtual void | setCodeStylePreferences(ICodeStylePreferences *preferences)

## Member Function Documentation

### Indenter::Indenter()

Default constructs an instance of Indenter.

### `[virtual]` Indenter::~Indenter()

Destroys the instance of Indenter. The destructor is virtual.

### `[virtual]` void Indenter::indent(QTextDocument *doc, const QTextCursor &cursor, const QChar &typedChar, const TabSettings &tabSettings)

### `[virtual]` void Indenter::indentBlock(QTextDocument *doc, const QTextBlock &block, const QChar &typedChar, const TabSettings &tabSettings)

### `[virtual]` int Indenter::indentFor(const QTextBlock &block, const TextEditor::TabSettings &tabSettings)

### `[virtual]` IndentationForBlock Indenter::indentationForBlocks(const QVector<QTextBlock> &blocks, const TextEditor::TabSettings &tabSettings)

### `[virtual]` void Indenter::invalidateCache(QTextDocument *doc)

### `[virtual]` bool Indenter::isElectricCharacter(const QChar &ch) const

### `[virtual]` void Indenter::reindent(QTextDocument *doc, const QTextCursor &cursor, const TabSettings &tabSettings)

### `[virtual]` void Indenter::setCodeStylePreferences(ICodeStylePreferences *preferences)