MCPcopy Create free account
hub / github.com/SpartanJ/eepp / set

Method set

src/eepp/ui/models/modelselection.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void ModelSelection::set( const ModelIndex& index ) {
21 eeASSERT( index.isValid() );
22 Lock l( mMutex );
23 if ( mIndexes.size() == 1 && contains( index ) )
24 return;
25 mIndexes.clear();
26 mIndexes.push_back( index );
27 mView->notifySelectionChange();
28}
29
30void ModelSelection::set( const std::vector<ModelIndex>& indexes, bool notify ) {
31#ifdef EE_DEBUG

Callers 1

handleFileEventLockedMethod · 0.45

Calls 6

push_backMethod · 0.80
notifySelectionChangeMethod · 0.80
containsFunction · 0.50
isValidMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected