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

Method convertToLocalUrl

kdevplatform/debugger/util/pathmappings.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47const QString PathMappings::pathMappingLocalEntry(QStringLiteral("Local"));
48
49QUrl PathMappings::convertToLocalUrl(const KConfigGroup& config, const QUrl& remoteUrl)
50{
51 if (remoteUrl.isLocalFile() && QFile::exists(remoteUrl.toLocalFile())) {
52 return remoteUrl;
53 }
54
55 KConfigGroup cfg = config.group(pathMappingsEntry);
56 return rebaseMatchingUrl(remoteUrl, cfg, pathMappingRemoteEntry, pathMappingLocalEntry);
57}
58
59QUrl PathMappings::convertToRemoteUrl(const KConfigGroup& config, const QUrl& localUrl)
60{

Callers 3

frameSelectionChangedMethod · 0.45
showStepInSourceMethod · 0.45
showCurrentLineMethod · 0.45

Calls 3

rebaseMatchingUrlFunction · 0.85
isLocalFileMethod · 0.80
toLocalFileMethod · 0.80

Tested by

no test coverage detected