forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user