KTextEditor
KTextEditor::CodeCompletionModel2 Class Reference
You must inherit your completion-model from CodeCompletionModel2 if you want to use a hierarchical structure and want to receive execution-feedback. More...
#include <codecompletionmodel.h>
Inheritance diagram for KTextEditor::CodeCompletionModel2:

Public Member Functions | |
CodeCompletionModel2 (QObject *parent) | |
virtual void | executeCompletionItem2 (Document *document, const Range &word, const QModelIndex &index) const |
Detailed Description
You must inherit your completion-model from CodeCompletionModel2 if you want to use a hierarchical structure and want to receive execution-feedback.
- See also:
- CodeCompletionModel::GroupRole
Definition at line 469 of file codecompletionmodel.h.
Constructor & Destructor Documentation
CodeCompletionModel2::CodeCompletionModel2 | ( | QObject * | parent | ) |
Definition at line 115 of file codecompletionmodel.cpp.
Member Function Documentation
void CodeCompletionModel2::executeCompletionItem2 | ( | Document * | document, | |
const Range & | word, | |||
const QModelIndex & | index | |||
) | const [virtual] |
This function is responsible for inserting a selected completion into the document.
The default implementation replaces the text that the completions were based on with the Qt::DisplayRole of the Name column of the given match.
- Parameters:
-
document the document to insert the completion into word the Range that the completions are based on (what the user entered so far) index identifies the completion match to insert
Definition at line 119 of file codecompletionmodel.cpp.
The documentation for this class was generated from the following files: