Kate
kateargumenthintmodel.cpp
Go to the documentation of this file.
75 for( QMap<int, QList<int> >::const_iterator it = m_depths.constBegin(); it != m_depths.constEnd(); ++it ) {
85 KateArgumentHintModel::KateArgumentHintModel( KateCompletionWidget* parent ) : ExpandingWidgetModel(parent), m_parent(parent) {
92 //kDebug( 13035 ) << "KateArgumentHintModel::data: index out of bound: " << index.row() << " total filtered: " << m_rows.count();
110 kDebug( 13035 ) << "KateArgumentHintModel::data: index out of bound: " << m_rows[index.row()] << " total filtered: " << group()->filtered.count();
152 totalText += source.second.sibling(source.second.row(), a).data(Qt::DisplayRole).toString() + ' ';
161 QVariant method = source.second.sibling(source.second.row(), a).data(CodeCompletionModel::HighlightingMethod);
162 if( method.type() == QVariant::Int && method.toInt() == CodeCompletionModel::CustomHighlighting)
180 highlights << source.second.sibling(source.second.row(), a).data(CodeCompletionModel::CustomHighlight).toList();
249 void KateArgumentHintModel::emitDataChanged( const QModelIndex& start, const QModelIndex& end ) {
279 //This argument-hint is on the lowest level, match it with the currently selected item in the completion-widget
virtual int columnCount(const QModelIndex &) const
Definition: kateargumenthintmodel.cpp:233
QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Definition: kateargumenthintmodel.cpp:39
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Maps from this display-model into the appropriate source code-completion model.
Definition: katecompletionmodel.cpp:875
QList< QVariant > mergeCustomHighlighting(int leftSize, const QList< QVariant > &left, int rightSize, const QList< QVariant > &right)
Definition: expandingwidgetmodel.cpp:449
KateArgumentHintModel(KateCompletionWidget *parent)
Definition: kateargumenthintmodel.cpp:85
static QIcon m_collapsedIcon
Definition: expandingwidgetmodel.h:136
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition: katecompletionmodel.h:48
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
const KateCompletionModel * model() const
Definition: katecompletionwidget.cpp:252
static KApplication * kApplication()
virtual int contextMatchQuality(const QModelIndex &row) const
Definition: kateargumenthintmodel.cpp:257
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
KateArgumentHintTree * argumentHintTree() const
Definition: katecompletionwidget.cpp:244
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Does not request data from index, this only returns local data like highlighting for expanded rows an...
Definition: expandingwidgetmodel.cpp:88
virtual int rowCount(const QModelIndex &parent) const
Definition: kateargumenthintmodel.cpp:226
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
uint matchColor(const QModelIndex &index) const
Returns the match-color for the given index, or zero if match-quality could not be computed...
Definition: expandingwidgetmodel.cpp:58
void parentModelReset()
Definition: kateargumenthintmodel.cpp:57
bool isExpanded(const QModelIndex &row) const
Definition: expandingwidgetmodel.cpp:305
void emitDataChanged(const QModelIndex &start, const QModelIndex &end)
Definition: kateargumenthintmodel.cpp:249
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Does not request data from index, this only returns local data like highlighting for expanded rows an...
Definition: kateargumenthintmodel.cpp:90
virtual bool indexIsItem(const QModelIndex &index) const
Should return true if the given row should be painted like a contained item(as opposed to label-rows ...
Definition: kateargumenthintmodel.cpp:253
virtual QTreeView * treeView() const
Definition: kateargumenthintmodel.cpp:245
KGuiItem reset()
KateCompletionTree * treeView() const
Definition: katecompletionwidget.cpp:921
static QIcon m_expandedIcon
Definition: expandingwidgetmodel.h:135
QStringList list(const QString &fileClass)
Cares about expanding/un-expanding items in a tree-view together with ExpandingDelegate.
Definition: expandingwidgetmodel.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.