KTextEditor
katecompletionmodel.h
79 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
143 Item(bool doInitialMatch, KateCompletionModel *model, const HierarchicalModelHandler &handler, ModelRow sourceRow);
148 enum MatchType { NoMatch = 0, PerfectMatch, StartsWithMatch, AbbreviationMatch, ContainsMatch };
232 /// Creates all sub-items of index i, or the item corresponding to index i. Returns the affected groups.
234 GroupSet createItems(const HierarchicalModelHandler &, const QModelIndex &i, bool notifyModel = false);
235 /// Deletes all sub-items of index i, or the item corresponding to index i. Returns the affected groups.
238 Group *createItem(const HierarchicalModelHandler &, const QModelIndex &i, bool notifyModel = false);
242 /// When forceGrouping is enabled, all given attributes will be used for grouping, regardless of the completion settings.
266 KTEXTEDITOR_EXPORT static bool matchesAbbreviation(const QString &word, const QString &typed, int &score);
286 Group *m_argumentHints; // The argument-hints will be passed on to another model, to be shown in another widget
Cares about expanding/un-expanding items in a tree-view together with ExpandingDelegate.
Definition expandingwidgetmodel.h:21
An item model for providing code completion, and meta information for enhanced presentation.
Definition codecompletionmodel.h:68
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition katecompletionmodel.h:40
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Does not request data from index, this only returns local data like highlighting for expanded rows an...
Definition katecompletionmodel.cpp:172
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Maps from this display-model into the appropriate source code-completion model.
Definition katecompletionmodel.cpp:802
bool indexIsItem(const QModelIndex &index) const override
Should return true if the given row should be painted like a contained item(as opposed to label-rows ...
Definition katecompletionmodel.cpp:1047
bool shouldMatchHideCompletionList() const
Returns whether one of the filtered items exactly matches its completion string.
Definition katecompletionmodel.cpp:1340
QString commonPrefix(QModelIndex selectedIndex) const
Returns a common prefix for all current visible completion entries If there is no common prefix,...
Definition katecompletionmodel.cpp:919
int contextMatchQuality(const QModelIndex &index) const override
Definition katecompletionmodel.cpp:281
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
Maps from an index in a source-model to the index of the item in this display-model.
Definition katecompletionmodel.cpp:825
void rowSelected(const QModelIndex &row) const
Definition katecompletionmodel.cpp:1776
This is the code completion's main widget, and also contains the core interface logic.
Definition katecompletionwidget.h:44
Q_SCRIPTABLE Q_NOREPLY void start()
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
void * internalPointer() const const
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
DisplayRole
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.