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

Method specialObjectNavigationWidget

plugins/quickopen/quickopenplugin.cpp:620–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620QWidget* QuickOpenPlugin::specialObjectNavigationWidget() const
621{
622 KTextEditor::View* view = ICore::self()->documentController()->activeTextDocumentView();
623 if (!view) {
624 return nullptr;
625 }
626
627 QUrl url = ICore::self()->documentController()->activeDocument()->url();
628
629 const auto languages = ICore::self()->languageController()->languagesForUrl(url);
630 for (const auto language : languages) {
631 QWidget* w = language->specialLanguageObjectNavigationWidget(url, view->cursorPosition()).first;
632 if (w) {
633 return w;
634 }
635 }
636
637 return nullptr;
638}
639
640QPair<QUrl, KTextEditor::Cursor> QuickOpenPlugin::specialObjectJumpPosition() const
641{

Callers

nothing calls this directly

Calls 8

documentControllerMethod · 0.80
activeDocumentMethod · 0.80
languagesForUrlMethod · 0.80
languageControllerMethod · 0.80
urlMethod · 0.45
cursorPositionMethod · 0.45

Tested by

no test coverage detected