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

Function displayUrl

kdevplatform/shell/problemmodel.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static QString displayUrl(const QUrl &url, const QUrl &base)
111{
112 if (base.isParentOf(url)) {
113 return url.toDisplayString(QUrl::PreferLocalFile).mid(base.toDisplayString(QUrl::PreferLocalFile).length());
114 } else {
115 return ICore::self()->projectController()->prettyFileName(url, IProjectController::FormatPlain);
116 }
117}
118
119QVariant ProblemModel::data(const QModelIndex& index, int role) const
120{

Callers 1

dataMethod · 0.85

Calls 5

isParentOfMethod · 0.80
midMethod · 0.80
projectControllerMethod · 0.80
lengthMethod · 0.45
prettyFileNameMethod · 0.45

Tested by

no test coverage detected