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

Method showCurrentLine

kdevplatform/shell/debugcontroller.cpp:617–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617void DebugController::showCurrentLine()
618{
619 const auto location = qMakePair(m_currentSession->currentUrl(), m_currentSession->currentLine());
620
621 if (location.second != -1) {
622 const auto localLocation = m_currentSession->convertToLocalUrl(location);
623 ICore::self()->documentController()->openDocument(localLocation.first,
624 KTextEditor::Cursor(localLocation.second, 0),
625 IDocumentController::DefaultMode);
626 }
627}
628}
629
630#include "moc_debugcontroller.cpp"

Callers

nothing calls this directly

Calls 6

currentLineMethod · 0.80
documentControllerMethod · 0.80
CursorClass · 0.50
currentUrlMethod · 0.45
convertToLocalUrlMethod · 0.45
openDocumentMethod · 0.45

Tested by

no test coverage detected