KTextEditor
KTextEditor::CodeCompletionModel2 Class Reference
#include <codecompletionmodel.h>
Inheritance diagram for KTextEditor::CodeCompletionModel2:

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 424 of file codecompletionmodel.h.
Public Member Functions | |
CodeCompletionModel2 (QObject *parent) | |
virtual void | executeCompletionItem2 (Document *document, const Range &word, const QModelIndex &index) const |
Constructor & Destructor Documentation
CodeCompletionModel2::CodeCompletionModel2 | ( | QObject * | parent | ) |
Definition at line 102 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) row The row of the completion match to insert
Definition at line 106 of file codecompletionmodel.cpp.
The documentation for this class was generated from the following files: