MCPcopy Create free account
hub / github.com/KDE/kdevelop / updateAutoUpdate

Method updateAutoUpdate

kdevplatform/debugger/variable/variablecollection.cpp:458–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void VariableCollection::updateAutoUpdate(IDebugSession* session)
459{
460 if (!session) session = currentSession();
461 qCDebug(DEBUGGER) << session;
462 if (!session) return;
463
464 if (!m_widgetVisible) {
465 session->variableController()->setAutoUpdate(IVariableController::UpdateNone);
466 } else {
467 QFlags<IVariableController::UpdateType> t = IVariableController::UpdateNone;
468 if (locals()->isExpanded()) t |= IVariableController::UpdateLocals;
469 if (watches()->isExpanded()) t |= IVariableController::UpdateWatches;
470 session->variableController()->setAutoUpdate(t);
471 }
472}
473
474VariableCollection::~ VariableCollection()
475{

Callers

nothing calls this directly

Calls 5

currentSessionFunction · 0.85
watchesFunction · 0.85
setAutoUpdateMethod · 0.80
isExpandedMethod · 0.80
variableControllerMethod · 0.45

Tested by

no test coverage detected