Commit 46abe329 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

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: default avatarhjk <qtc-committer@nokia.com>
parent 85b4b826
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment