summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-07-14 12:37:49 +0200
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-07-15 16:24:01 +0200
commit2c51e0c9da9074a0ee7e9ce4666a777f7a03affd (patch)
treeb6dd6afd8b94ed4f969eeef78ee0763bc9a38c5c /src/plugins/cpptools/cppcodecompletion.h
parenta76773191da0819807c0b4dd6b018d7b29b82735 (diff)
downloadqt-creator-2c51e0c9da9074a0ee7e9ce4666a777f7a03affd.tar.gz
Automatically trigger completion for C++ editor after three characters
Similar behaviour as for the QML editor. However, for now without removing the completion box when you have typed the whole word, since it could still be useful for automatically inserting other characters. Task-number: QTCREATORBUG-67
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.h')
-rw-r--r--src/plugins/cpptools/cppcodecompletion.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.h b/src/plugins/cpptools/cppcodecompletion.h
index 406d4a2f87..15ac30ab4d 100644
--- a/src/plugins/cpptools/cppcodecompletion.h
+++ b/src/plugins/cpptools/cppcodecompletion.h
@@ -72,6 +72,7 @@ public:
TextEditor::ITextEditable *editor() const;
int startPosition() const;
+ bool shouldRestartCompletion();
QList<TextEditor::CompletionItem> getCompletions();
bool supportsEditor(TextEditor::ITextEditable *editor);
bool triggersCompletion(TextEditor::ITextEditable *editor);
@@ -144,6 +145,7 @@ private:
CppModelManager *m_manager;
TextEditor::ITextEditable *m_editor;
int m_startPosition; // Position of the cursor from which completion started
+ bool m_shouldRestartCompletion;
bool m_forcedCompletion;
unsigned m_completionOperator;