MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / removeRow

Method removeRow

src/gui/UBFeaturesWidget.cpp:1308–1319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1306}
1307
1308bool UBFeaturesModel::removeRow( int row, const QModelIndex & parent )
1309{
1310 if ( row < 0 )
1311 return false;
1312 if ( row >= featuresList->size() )
1313 return false;
1314 beginRemoveRows( parent, row, row );
1315 //featuresList->remove( row );
1316 featuresList->erase( featuresList->begin() + row );
1317 endRemoveRows();
1318 return true;
1319}
1320
1321void UBFeaturesModel::moveData(const UBFeature &source, const UBFeature &destination
1322 , Qt::DropAction action = Qt::CopyAction, bool deleteManualy)

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected