MCPcopy Create free account
hub / github.com/KDE/kdevelop / itemData

Method itemData

plugins/projectfilter/filtermodel.cpp:239–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239QMap<int, QVariant> FilterModel::itemData(const QModelIndex& index) const
240{
241 QMap<int, QVariant> ret;
242 if (!index.isValid()) {
243 return ret;
244 }
245 Q_ASSERT(!index.parent().isValid());
246 Q_ASSERT(index.row() >= 0 && index.row() < m_filters.size());
247 const SerializedFilter& filter = m_filters.at(index.row());
248 ret.insert(Qt::UserRole + Pattern, filter.pattern);
249 ret.insert(Qt::UserRole + Inclusive, static_cast<int>(filter.type));
250 ret.insert(Qt::UserRole + Targets, static_cast<int>(filter.targets));
251 return ret;
252}
253
254bool FilterModel::setItemData(const QModelIndex& index, const QMap< int, QVariant >& roles)
255{

Callers 13

searchRepoMethod · 0.45
activateDepsMethod · 0.45
saveToConfigurationMethod · 0.45
executeCompletionTestFunction · 0.45
renewModelMethod · 0.45
changeModelMethod · 0.45
clearSearchHistoryMethod · 0.45
currentCompilerMethod · 0.45

Calls 6

isValidMethod · 0.45
parentMethod · 0.45
rowMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
insertMethod · 0.45