diff --git a/src/plugins/texteditor/textindenter.cpp b/src/plugins/texteditor/textindenter.cpp index 5684bcfc092..8ffbca4534d 100644 --- a/src/plugins/texteditor/textindenter.cpp +++ b/src/plugins/texteditor/textindenter.cpp @@ -51,6 +51,15 @@ int TextIndenter::indentFor(const QTextBlock &block, return tabSettings.indentationColumn(previousText); } +void TextIndenter::autoIndent(const QTextCursor &cursor, + const TabSettings &tabSettings, + int cursorPositionInEditor) +{ + Q_UNUSED(cursor); + Q_UNUSED(tabSettings); + Q_UNUSED(cursorPositionInEditor); +} + IndentationForBlock TextIndenter::indentationForBlocks(const QVector &blocks, const TabSettings &tabSettings, int /*cursorPositionInEditor*/) diff --git a/src/plugins/texteditor/textindenter.h b/src/plugins/texteditor/textindenter.h index 98bf56c54d5..7198fbbc6fc 100644 --- a/src/plugins/texteditor/textindenter.h +++ b/src/plugins/texteditor/textindenter.h @@ -26,6 +26,10 @@ public: const TabSettings &tabSettings, int cursorPositionInEditor = -1) override; + void autoIndent(const QTextCursor &cursor, + const TabSettings &tabSettings, + int cursorPositionInEditor = -1) override; + IndentationForBlock indentationForBlocks(const QVector &blocks, const TabSettings &tabSettings, int cursorPositionInEditor = -1) override;