Moved indentation utility method from CPPEditor into BaseTextEditor.

Reviewed-by: Roberto Raggi
This commit is contained in:
Erik Verbruggen
2010-02-03 16:34:54 +01:00
parent 85ff8c2259
commit 62705df65f
4 changed files with 8 additions and 7 deletions

View File

@@ -3803,6 +3803,11 @@ bool BaseTextEditor::isElectricCharacter(const QChar &) const
return false;
}
void BaseTextEditor::indentInsertedText(const QTextCursor &tc)
{
indent(tc.document(), tc, QChar::Null);
}
void BaseTextEditor::countBracket(QChar open, QChar close, QChar c, int *errors, int *stillopen)
{
if (c == open)