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

Method switchHeaderSource

plugins/switchtobuddy/switchtobuddyplugin.cpp:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void SwitchToBuddyPlugin::switchHeaderSource()
139{
140 qCDebug(PLUGIN_SWITCHTOBUDDY) << "switching header/source";
141
142 auto doc = ICore::self()->documentController()->activeDocument();
143 if (!doc)
144 return;
145
146 QString buddyUrl = findSwitchCandidate(doc->url());
147 if (!buddyUrl.isEmpty())
148 switchToBuddy(buddyUrl);
149}
150
151void SwitchToBuddyPlugin::switchToBuddy(const QString& url)
152{

Callers

nothing calls this directly

Calls 5

findSwitchCandidateFunction · 0.85
activeDocumentMethod · 0.80
documentControllerMethod · 0.80
urlMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected