From 46abe329f4ba924ad7b6800f34b31783b4a8849d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Aum=C3=BCller?= Date: Wed, 6 Jan 2010 14:57:45 +0100 Subject: [PATCH] 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 --- src/plugins/texteditor/basetexteditor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/texteditor/basetexteditor.h b/src/plugins/texteditor/basetexteditor.h index 38784adcb8e..89786204ed6 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