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:866
QList< QVariant > toList() const
QList< QVariant > mergeCustomHighlighting(int leftSize, const QList< QVariant > &left, int rightSize, const QList< QVariant > &right)
Definition: expandingwidgetmodel.cpp:449
const_iterator constBegin() const
KateArgumentHintModel(KateCompletionWidget *parent)
Definition: kateargumenthintmodel.cpp:85
void push_front(const T &value)
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
void modelReset()
const KateCompletionModel * model() const
Definition: katecompletionwidget.cpp:252
virtual int contextMatchQuality(const QModelIndex &row) const
Definition: kateargumenthintmodel.cpp:257
bool isValid() const
int count(const T &value) const
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
int toInt(bool *ok) const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual int rowCount(const QModelIndex &parent) const
Definition: kateargumenthintmodel.cpp:226
const_iterator constEnd() const
int row() const
void setBackground(const QBrush &brush)
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
iterator end()
void emitDataChanged(const QModelIndex &start, const QModelIndex &end)
Definition: kateargumenthintmodel.cpp:249
const QAbstractItemModel * model() const
QVariant data(int role) const
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
int column() const
bool isValid() const
Type type() const
QModelIndex currentIndex() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KateCompletionTree * treeView() const
Definition: katecompletionwidget.cpp:923
static QIcon m_expandedIcon
Definition: expandingwidgetmodel.h:135
QString toString() const
bool isValid() const
iterator begin()
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-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.