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:
Martin Aumüller
2010-01-06 14:57:45 +01:00
committed by hjk
parent 85b4b826ab
commit 46abe329f4

View File

@@ -525,8 +525,10 @@ protected:
void leaveEvent(QEvent *); void leaveEvent(QEvent *);
void keyReleaseEvent(QKeyEvent *); void keyReleaseEvent(QKeyEvent *);
public:
// Returns true if key triggers an indent. // Returns true if key triggers an indent.
virtual bool isElectricCharacter(const QChar &ch) const; virtual bool isElectricCharacter(const QChar &ch) const;
protected:
// Returns the text to complete at the cursor position, or an empty string // Returns the text to complete at the cursor position, or an empty string
virtual QString autoComplete(QTextCursor &cursor, const QString &text) const; virtual QString autoComplete(QTextCursor &cursor, const QString &text) const;
// Handles backspace. When returning true, backspace processing is stopped // Handles backspace. When returning true, backspace processing is stopped