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

Method removeRows

kdevplatform/project/projectbuildsetmodel.cpp:320–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320bool ProjectBuildSetModel::removeRows( int row, int count, const QModelIndex& parent )
321{
322 if( parent.isValid() || row > rowCount() || row < 0 || (row+count) > rowCount() || count <= 0 )
323 return false;
324
325 QList<int> itemsToRemove;
326 itemsToRemove.reserve(count);
327 for( int i = row; i < row+count; i++ )
328 {
329 itemsToRemove.append( i );
330 }
331 removeItemsWithCache( itemsToRemove );
332 return true;
333}
334
335QList<BuildItem> ProjectBuildSetModel::items() const
336{

Callers

nothing calls this directly

Calls 3

isValidMethod · 0.45
reserveMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected