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

Method insertItemWithCache

kdevplatform/project/projectbuildsetmodel.cpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void ProjectBuildSetModel::insertItemWithCache( const BuildItem& item )
213{
214 Q_D(ProjectBuildSetModel);
215
216 int insertionPlace = findInsertionPlace( item.itemPath() );
217 beginInsertRows( QModelIndex(), insertionPlace, insertionPlace );
218 d->items.insert(insertionPlace, item);
219 endInsertRows();
220}
221
222void ProjectBuildSetModel::insertItemsOverrideCache( int index, const QList< BuildItem >& items )
223{

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.50
itemPathMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected