aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/textindenter.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2019-01-28 07:54:05 +0100
committerIvan Donchevskii <ivan.donchevskii@qt.io>2019-01-31 10:25:05 +0000
commit80fb0178fdd9ee82acfb22aa512c7514868e89d1 (patch)
tree7cb0a4670571ccb4183ad9b8ce6bf939a99172cc /src/plugins/texteditor/textindenter.cpp
parent9d046826f87c1971f4104ca5fc86ef58250168c5 (diff)
ClangFormat: Introduce check to format code instead of indenting
Ctrl+I with the new check will reformat the selected code or the current line instead. Change-Id: Ia5a72c4a09621034d0dfe463f669fe1ca36b0b5f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textindenter.cpp')
-rw-r--r--src/plugins/texteditor/textindenter.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/texteditor/textindenter.cpp b/src/plugins/texteditor/textindenter.cpp
index bca7b1ae18..53801fabfa 100644
--- a/src/plugins/texteditor/textindenter.cpp
+++ b/src/plugins/texteditor/textindenter.cpp
@@ -102,12 +102,6 @@ void TextIndenter::reindent(const QTextCursor &cursor, const TabSettings &tabSet
}
}
-Replacements TextIndenter::format(const QTextCursor &cursor, const TabSettings &tabSettings)
-{
- indent(cursor, QChar::Null, tabSettings);
- return Replacements();
-}
-
Utils::optional<TabSettings> TextIndenter::tabSettings() const
{
return Utils::optional<TabSettings>();