forked from qt-creator/qt-creator
make isElectricCharacter public
the fakevim plugin needs access to this method for automatic indenting as the implementation differs across the different types of editors Merge-request: 98 Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user