| 61 | } |
| 62 | |
| 63 | bool ModelSelection::remove( const ModelIndex& index ) { |
| 64 | eeASSERT( index.isValid() ); |
| 65 | Lock l( mMutex ); |
| 66 | auto contains = std::find( mIndexes.begin(), mIndexes.end(), index ); |
| 67 | if ( contains == mIndexes.end() ) |
| 68 | return false; |
| 69 | mIndexes.erase( contains ); |
| 70 | mView->notifySelectionChange(); |
| 71 | return true; |
| 72 | } |
| 73 | |
| 74 | void ModelSelection::clear( bool notify ) { |
| 75 | Lock l( mMutex ); |
no test coverage detected