forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -61,6 +61,8 @@ public:
|
||||
void setCompletionItems(const QList<TextEditor::CompletionItem> &completionitems);
|
||||
void showCompletions(int startPos);
|
||||
|
||||
QChar typedChar() const;
|
||||
|
||||
signals:
|
||||
void itemSelected(const TextEditor::CompletionItem &item);
|
||||
void completionListClosed();
|
||||
@@ -115,6 +117,7 @@ private:
|
||||
CompletionSupport *m_support;
|
||||
QPointer<CompletionInfoFrame> m_infoFrame;
|
||||
QTimer m_infoTimer;
|
||||
QChar m_typedChar;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user