KTextEditor
codecompletionmodel.h
133 enum HighlightMethod { NoHighlighting = 0x0, InternalHighlighting = 0x1, CustomHighlighting = 0x2 };
373 virtual void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, InvocationType invocationType);
385 virtual void executeCompletionItem(KTextEditor::View *view, const Range &word, const QModelIndex &index) const;
397 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
Is requested before MatchQuality(..) is requested.
Definition: codecompletionmodel.h:172
Returns the inheritance depth of the completion.
Definition: codecompletionmodel.h:203
Allows an item to provide custom highlighting.
Definition: codecompletionmodel.h:194
HighlightMethod
Definition: codecompletionmodel.h:133
After a model returned true for a row on IsExpandable, the row may be expanded by the user...
Definition: codecompletionmodel.h:239
Whenever an item is selected, this will be requested from the underlying model.
Definition: codecompletionmodel.h:247
Icon representing the type of completion.
Definition: codecompletionmodel.h:80
This allows items in the completion-list to be expandable.
Definition: codecompletionmodel.h:210
UserRole
AccessibilityAccept will be requested on an item if it is expanded, contains an expanding-widget, and the user triggers a special shortcut to trigger the action associated with the position within the expanding-widget the user has navigated to using AccessibilityNext and AccessibilityPrevious.
Definition: codecompletionmodel.h:316
Return a nonzero value here to enforce sorting the item at the end of the list.
Definition: codecompletionmodel.h:353
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:21
If requested, your model should try to determine whether the completion in question is a suitable mat...
Definition: codecompletionmodel.h:162
This will be requested for each item to ask whether it should be included in computing a best-matches...
Definition: codecompletionmodel.h:289
An object representing a section of text, from one Cursor to another.
Definition: include/ktexteditor/range.h:44
Define which highlighting method will be used:
Definition: codecompletionmodel.h:179
The model should return an index to the scope -1 represents no scope.
Definition: codecompletionmodel.h:146
ExtraItemDataRoles
Meta information is passed through extra {Qt::ItemDataRole}s.
Definition: codecompletionmodel.h:139
Using this Role, it is possible to greatly optimize the time needed to process very long completion-l...
Definition: codecompletionmodel.h:348
The following three enumeration-values are only used on expanded completion-list items that contain a...
Definition: codecompletionmodel.h:301
CompletionProperty
Definition: codecompletionmodel.h:89
Is this completion-item an argument-hint? The model should return an integral positive number if the ...
Definition: codecompletionmodel.h:278
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:146
AccessibilityPrevious will be requested on an item if it is expanded, contains an expanding-widget...
Definition: codecompletionmodel.h:308
An item model for providing code completion, and meta information for enhanced presentation.
Definition: codecompletionmodel.h:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:01:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:01:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.