KTextEditor
codecompletionmodel.h
Go to the documentation of this file.
86 Prefix = 0,
95 };
99 NoProperty = 0x0,
100 FirstProperty = 0x1,
103 Public = 0x1,
104 Protected = 0x2,
105 Private = 0x4,
108 Static = 0x8,
112 Namespace = 0x20,
113 Class = 0x40,
114 Struct = 0x80,
115 Union = 0x100,
116 Function = 0x200,
117 Variable = 0x400,
118 Enum = 0x800,
119 Template = 0x1000,
120 TypeAlias = 0x2000,
123 Virtual = 0x4000,
124 Override = 0x8000,
125 Inline = 0x10000,
126 Friend = 0x20000,
127 Signal = 0x40000,
128 Slot = 0x80000,
131 LocalScope = 0x100000,
132 NamespaceScope = 0x200000,
133 GlobalScope = 0x400000,
137 };
141 NoHighlighting = 0x0,
142 InternalHighlighting = 0x1,
144 };
151 CompletionRole = Qt::UserRole,
361 };
371 };
384 virtual void completionInvoked(KTextEditor::View* view, const KTextEditor::Range& range, InvocationType invocationType);
409 virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
491 virtual void executeCompletionItem2(Document* document, const Range& word, const QModelIndex& index) const;
You must inherit your completion-model from CodeCompletionModel2 if you want to use a hierarchical st...
Definition: codecompletionmodel.h:477
An item model for providing code completion, and meta information for enhanced presentation.
Definition: codecompletionmodel.h:78
@ AutomaticInvocation
Definition: codecompletionmodel.h:368
@ UserInvocation
Definition: codecompletionmodel.h:369
void hasGroupsChanged(KTextEditor::CodeCompletionModel *model, bool hasGroups)
Internal.
void waitForReset()
Emit this if the code-completion for this model was invoked, some time is needed in order to get the ...
HighlightMethod
Definition: codecompletionmodel.h:140
CompletionProperty
Definition: codecompletionmodel.h:98
ExtraItemDataRoles
Meta information is passed through extra {Qt::ItemDataRole}s.
Definition: codecompletionmodel.h:149
@ InheritanceDepth
Returns the inheritance depth of the completion.
Definition: codecompletionmodel.h:213
@ GroupRole
Using this Role, it is possible to greatly optimize the time needed to process very long completion-l...
Definition: codecompletionmodel.h:353
@ SetMatchContext
Is requested before MatchQuality(..) is requested.
Definition: codecompletionmodel.h:182
@ HighlightingMethod
Define which highlighting method will be used:
Definition: codecompletionmodel.h:189
@ ItemSelected
Whenever an item is selected, this will be requested from the underlying model.
Definition: codecompletionmodel.h:253
@ AccessibilityAccept
AccessibilityAccept will be requested on an item if it is expanded, contains an expanding-widget,...
Definition: codecompletionmodel.h:321
@ UnimportantItemRole
Return a nonzero value here to enforce sorting the item at the end of the list.
Definition: codecompletionmodel.h:358
@ BestMatchesCount
This will be requested for each item to ask whether it should be included in computing a best-matches...
Definition: codecompletionmodel.h:295
@ ScopeIndex
The model should return an index to the scope -1 represents no scope.
Definition: codecompletionmodel.h:156
@ ExpandingWidget
After a model returned true for a row on IsExpandable, the row may be expanded by the user.
Definition: codecompletionmodel.h:245
@ ArgumentHintDepth
Is this completion-item an argument-hint? The model should return an integral positive number if the ...
Definition: codecompletionmodel.h:284
@ AccessibilityNext
The following three enumeration-values are only used on expanded completion-list items that contain a...
Definition: codecompletionmodel.h:307
@ MatchQuality
If requested, your model should try to determine whether the completion in question is a suitable mat...
Definition: codecompletionmodel.h:172
@ AccessibilityPrevious
AccessibilityPrevious will be requested on an item if it is expanded, contains an expanding-widget,...
Definition: codecompletionmodel.h:314
@ CustomHighlight
Allows an item to provide custom highlighting.
Definition: codecompletionmodel.h:204
@ IsExpandable
This allows items in the completion-list to be expandable.
Definition: codecompletionmodel.h:220
An object representing a section of text, from one Cursor to another.
Definition: range.h:55
QString Const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.