diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-07-09 15:12:44 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-07-09 15:52:09 +0200 |
commit | b4cecd6ec8a39c10913887fd9a99293a260e6482 (patch) | |
tree | e6a57036feaba57f9e6f1f1d02a1ea69d564444b /src/plugins/qmljseditor/qmljscodecompletion.h | |
parent | 6ee1027eaa796008612a78ffa62339963d597b3a (diff) | |
download | qt-creator-b4cecd6ec8a39c10913887fd9a99293a260e6482.tar.gz |
Allow certain characters to also trigger the completion
Now you can type characters like ., ( and : to complete the selected
item, depending on the type of the completion item.
Task-number: QTCREATORBUG-271
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/qmljseditor/qmljscodecompletion.h')
-rw-r--r-- | src/plugins/qmljseditor/qmljscodecompletion.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljscodecompletion.h b/src/plugins/qmljseditor/qmljscodecompletion.h index 0cae652ad2..f435badf24 100644 --- a/src/plugins/qmljseditor/qmljscodecompletion.h +++ b/src/plugins/qmljseditor/qmljscodecompletion.h @@ -68,7 +68,8 @@ public: virtual bool triggersCompletion(TextEditor::ITextEditable *editor); virtual int startCompletion(TextEditor::ITextEditable *editor); virtual void completions(QList<TextEditor::CompletionItem> *completions); - virtual void complete(const TextEditor::CompletionItem &item); + virtual bool typedCharCompletes(const TextEditor::CompletionItem &item, QChar typedChar); + virtual void complete(const TextEditor::CompletionItem &item, QChar typedChar); virtual bool partiallyComplete(const QList<TextEditor::CompletionItem> &completionItems); virtual QList<TextEditor::CompletionItem> getCompletions(); |