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

Method VariableCollection

kdevplatform/debugger/variable/variablecollection.cpp:421–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421VariableCollection::VariableCollection(IDebugController* controller)
422 : TreeModel({i18n("Name"), i18n("Value"), i18n("Type")}, controller)
423 , m_widgetVisible(false)
424 , m_textHintProvider(this)
425{
426 m_universe = new VariablesRoot(this);
427 setRootItem(m_universe);
428
429 connect (ICore::self()->documentController(),
430 &IDocumentController::textDocumentCreated,
431 this,
432 &VariableCollection::textDocumentCreated );
433
434 connect(controller, &IDebugController::currentSessionChanged,
435 this, &VariableCollection::updateAutoUpdate);
436
437 // Qt5 signal slot syntax does not support default arguments
438 auto callUpdateAutoUpdate = [&] { updateAutoUpdate(); };
439
440 connect(locals(), &Locals::expanded, this, callUpdateAutoUpdate);
441 connect(locals(), &Locals::collapsed, this, callUpdateAutoUpdate);
442 connect(watches(), &Watches::expanded, this, callUpdateAutoUpdate);
443 connect(watches(), &Watches::collapsed, this, callUpdateAutoUpdate);
444}
445
446void VariableCollection::variableWidgetHidden()
447{

Callers

nothing calls this directly

Calls 2

watchesFunction · 0.85
documentControllerMethod · 0.80

Tested by

no test coverage detected