AutoCompleter Class | Extending Qt Creator Manual

Extending Qt Creator Manual | AutoCompleter

Extending Qt Creator Manual 4.6.0

# AutoCompleter Class

(TextEditor::AutoCompleter)

- List of all members, including inherited members

## Public Functions

| AutoCompleter()
virtual | ~AutoCompleter()
virtual bool | autoBackspace(QTextCursor &cursor)
virtual QString | autoComplete(QTextCursor &cursor, const QString &text, bool skipChars) const
virtual bool | contextAllowsAutoBrackets(const QTextCursor &cursor, const QString &textToInsert = QString()) const
virtual bool | contextAllowsAutoQuotes(const QTextCursor &cursor, const QString &textToInsert = QString()) const
virtual bool | contextAllowsElectricCharacters(const QTextCursor &cursor) const
virtual QString | insertMatchingBrace(const QTextCursor &cursor, const QString &text, QChar lookAhead, bool skipChars, int *skippedChars) const
virtual QString | insertMatchingQuote(const QTextCursor &cursor, const QString &text, QChar lookAhead, bool skipChars, int *skippedChars) const
virtual QString | insertParagraphSeparator(const QTextCursor &cursor) const
bool | isAutoInsertBracketsEnabled() const
bool | isAutoInsertQuotesEnabled() const
virtual bool | isInComment(const QTextCursor &cursor) const
virtual bool | isInString(const QTextCursor &cursor) const
bool | isNextBlockIndented(const QTextBlock &currentBlock) const
bool | isSurroundWithBracketsEnabled() const
bool | isSurroundWithQuotesEnabled() const
virtual int | paragraphSeparatorAboutToBeInserted(QTextCursor &cursor)
void | setAutoInsertBracketsEnabled(bool b)
void | setAutoInsertQuotesEnabled(bool b)
void | setSurroundWithBracketsEnabled(bool b)
void | setSurroundWithQuotesEnabled(bool b)
void | setTabSettings(const TabSettings &tabSettings)
const TabSettings & | tabSettings() const

## Static Public Members

bool | isQuote(const QString &text)

## Member Function Documentation

### AutoCompleter::AutoCompleter()

Default constructs an instance of AutoCompleter.

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

Destroys the instance of AutoCompleter. The destructor is virtual.

### `[virtual]` bool AutoCompleter::autoBackspace(QTextCursor &cursor)

### `[virtual]` QString AutoCompleter::autoComplete(QTextCursor &cursor, const QString &text, bool skipChars) const

### `[virtual]` bool AutoCompleter::contextAllowsAutoBrackets(const QTextCursor &cursor, const QString &textToInsert = QString()) const

### `[virtual]` bool AutoCompleter::contextAllowsAutoQuotes(const QTextCursor &cursor, const QString &textToInsert = QString()) const

### `[virtual]` bool AutoCompleter::contextAllowsElectricCharacters(const QTextCursor &cursor) const

### `[virtual]` QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor, const QString &text, QChar lookAhead, bool skipChars, int *skippedChars) const

### `[virtual]` QString AutoCompleter::insertMatchingQuote(const QTextCursor &cursor, const QString &text, QChar lookAhead, bool skipChars, int *skippedChars) const

### `[virtual]` QString AutoCompleter::insertParagraphSeparator(const QTextCursor &cursor) const

### bool AutoCompleter::isAutoInsertBracketsEnabled() const

### bool AutoCompleter::isAutoInsertQuotesEnabled() const

### `[virtual]` bool AutoCompleter::isInComment(const QTextCursor &cursor) const

### `[virtual]` bool AutoCompleter::isInString(const QTextCursor &cursor) const

### bool AutoCompleter::isNextBlockIndented(const QTextBlock &currentBlock) const

### `[static]` bool AutoCompleter::isQuote(const QString &text)

### bool AutoCompleter::isSurroundWithBracketsEnabled() const

### bool AutoCompleter::isSurroundWithQuotesEnabled() const

### `[virtual]` int AutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor)

### void AutoCompleter::setAutoInsertBracketsEnabled(bool b)

See also isAutoInsertBracketsEnabled().

### void AutoCompleter::setAutoInsertQuotesEnabled(bool b)

See also isAutoInsertQuotesEnabled().

### void AutoCompleter::setSurroundWithBracketsEnabled(bool b)

See also isSurroundWithBracketsEnabled().

### void AutoCompleter::setSurroundWithQuotesEnabled(bool b)

See also isSurroundWithQuotesEnabled().

### void AutoCompleter::setTabSettings(const TabSettings &tabSettings)

See also tabSettings().

### const TabSettings &AutoCompleter::tabSettings() const

See also setTabSettings().