| 318 | } |
| 319 | |
| 320 | bool 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 | |
| 335 | QList<BuildItem> ProjectBuildSetModel::items() const |
| 336 | { |