aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/autocompleter.h
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2011-02-01 14:13:54 +0100
committerLeandro Melo <leandro.melo@nokia.com>2011-02-21 17:22:24 +0100
commitea313f3ec84692c6112ad2a0f7d47909dafbb69c (patch)
treee952cb85d0e9ca8d974d2c44f8dc4396a1cc0026 /src/plugins/texteditor/autocompleter.h
parentcbafc50acc48d75a1fc993e72bcb6587f8bb9a4e (diff)
Text editor: Introduce per project settings
With some refactorings to make the code look better. Reviewed-by: con
Diffstat (limited to 'src/plugins/texteditor/autocompleter.h')
-rw-r--r--src/plugins/texteditor/autocompleter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/texteditor/autocompleter.h b/src/plugins/texteditor/autocompleter.h
index b4da82fd8f..0b2bb4b3db 100644
--- a/src/plugins/texteditor/autocompleter.h
+++ b/src/plugins/texteditor/autocompleter.h
@@ -45,6 +45,8 @@ QT_END_NAMESPACE
namespace TextEditor {
+class TabSettings;
+
class TEXTEDITOR_EXPORT AutoCompleter
{
public:
@@ -64,7 +66,8 @@ public:
virtual bool autoBackspace(QTextCursor &cursor);
// Hook to insert special characters on enter. Returns the number of extra blocks inserted.
- virtual int paragraphSeparatorAboutToBeInserted(QTextCursor &cursor);
+ virtual int paragraphSeparatorAboutToBeInserted(QTextCursor &cursor,
+ const TabSettings &tabSettings);
virtual bool contextAllowsAutoParentheses(const QTextCursor &cursor,
const QString &textToInsert = QString()) const;