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

Method saveExpandedState

src/tools/ecode/plugins/debugger/models/variablesmodel.cpp:299–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void VariablesHolder::saveExpandedState( const ModelIndex& index, bool uniqueLocation ) {
300 Lock l( mModel->resourceMutex() );
301 if ( !mCurrentLocation && !uniqueLocation )
302 return;
303
304 ModelVariableNode* node = static_cast<ModelVariableNode*>( index.internalData() );
305 if ( !node )
306 return;
307
308 auto nodePath = buildVariablePath( node );
309
310 ExpandedState::Location location =
311 uniqueLocation ? ExpandedState::Location{} : *mCurrentLocation;
312
313 mExpandedStates[location].insert( std::move( nodePath ) );
314}
315
316void VariablesHolder::removeExpandedState( const ModelIndex& index, bool uniqueLocation ) {
317 Lock l( mModel->resourceMutex() );

Callers 2

buildStatusBarMethod · 0.80
initUIMethod · 0.80

Calls 2

internalDataMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected