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

Method viewCreated

kdevplatform/debugger/variable/variablecollection.cpp:493–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void VariableCollection::viewCreated(KTextEditor::Document* doc,
494 KTextEditor::View* view)
495{
496 Q_UNUSED(doc);
497 Q_ASSERT(view);
498
499 if (m_textHintProvidedViews.contains(view)) {
500 return;
501 }
502 connect(view, &QObject::destroyed, this, [this, view](QObject* obj) {
503 Q_ASSERT(obj == view);
504 m_textHintProvidedViews.removeOne(view);
505 });
506
507 view->registerTextHintProvider(&m_textHintProvider);
508 m_textHintProvidedViews.append(view);
509}
510
511Locals* VariableCollection::locals(const QString &name) const
512{

Callers 2

addNewToolViewMethod · 0.45
addToolViewToAreaMethod · 0.45

Calls 3

removeOneMethod · 0.80
containsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected