diff --git a/src/plugins/texteditor/basetexteditor.h b/src/plugins/texteditor/basetexteditor.h index 38784adcb8e3a0d1349bb5f410f8051d3e8804cd..89786204ed6696bb072694a9189bc9b38fc5f5ba 100644 --- a/src/plugins/texteditor/basetexteditor.h +++ b/src/plugins/texteditor/basetexteditor.h @@ -525,8 +525,10 @@ protected: void leaveEvent(QEvent *); void keyReleaseEvent(QKeyEvent *); +public: // Returns true if key triggers an indent. virtual bool isElectricCharacter(const QChar &ch) const; +protected: // Returns the text to complete at the cursor position, or an empty string virtual QString autoComplete(QTextCursor &cursor, const QString &text) const; // Handles backspace. When returning true, backspace processing is stopped