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

@@ -533,6 +533,9 @@ protected:
public:
// Returns true if key triggers an indent.
virtual bool isElectricCharacter(const QChar &ch) const;
void indentInsertedText(const QTextCursor &tc);
protected:
// Returns the text to complete at the cursor position, or an empty string
virtual QString autoComplete(QTextCursor &cursor, const QString &text) const;