forked from qt-creator/qt-creator
Moved indentation utility method from CPPEditor into BaseTextEditor.
Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user