| 419 | } |
| 420 | |
| 421 | VariableCollection::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 | |
| 446 | void VariableCollection::variableWidgetHidden() |
| 447 | { |
nothing calls this directly
no test coverage detected