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

Method updateCategoryItem

plugins/documentview/kdevdocumentview.cpp:315–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void KDevDocumentView::updateCategoryItem( KDevCategoryItem *item )
316{
317 QString text = KDevelop::ICore::self()->projectController()->prettyFilePath(item->url(), KDevelop::IProjectController::FormatPlain);
318 // remove trailing slash
319 if (text.length() > 1) {
320 text.chop(1);
321 }
322 item->setText(text);
323}
324
325void KDevDocumentView::updateProjectPaths()
326{

Callers

nothing calls this directly

Calls 5

prettyFilePathMethod · 0.80
projectControllerMethod · 0.80
urlMethod · 0.45
lengthMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected