| 1306 | } |
| 1307 | |
| 1308 | bool 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 | |
| 1321 | void UBFeaturesModel::moveData(const UBFeature &source, const UBFeature &destination |
| 1322 | , Qt::DropAction action = Qt::CopyAction, bool deleteManualy) |
no test coverage detected