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

Method createNavigationWidget

kdevplatform/language/duchain/ducontext.cpp:1493–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1491}
1492
1493AbstractNavigationWidget* DUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext,
1494 AbstractNavigationWidget::DisplayHints hints) const
1495{
1496 if (decl) {
1497 auto* widget = new AbstractNavigationWidget;
1498 widget->setDisplayHints(hints);
1499 auto* context = new AbstractDeclarationNavigationContext(DeclarationPointer(decl),
1500 TopDUContextPointer(topContext));
1501 widget->setContext(NavigationContextPointer(context));
1502 return widget;
1503 } else {
1504 return nullptr;
1505 }
1506}
1507
1508QVector<RangeInRevision> allUses(DUContext* context, int declarationIndex, bool noEmptyUses)
1509{

Callers 3

tabToolTipRequestedMethod · 0.45
registerChildMethod · 0.45
newNameForDeclarationMethod · 0.45

Calls 2

setDisplayHintsMethod · 0.80
setContextMethod · 0.45

Tested by

no test coverage detected