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

Function iconNameForPath

plugins/quickopen/projectfilequickopen.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55QString iconNameForPath(IndexedStringView indexedPath)
56{
57 if (indexedPath.isEmpty()) {
58 return QStringLiteral("tab-duplicate");
59 }
60 const auto* const item = ICore::self()->projectController()->projectModel()->itemForPath(indexedPath);
61 if (item) {
62 return item->iconName();
63 }
64 return QStringLiteral("unknown");
65}
66}
67
68ProjectFile::ProjectFile(const ProjectFileItem* fileItem)

Callers 1

iconMethod · 0.85

Calls 5

itemForPathMethod · 0.80
projectControllerMethod · 0.80
isEmptyMethod · 0.45
projectModelMethod · 0.45
iconNameMethod · 0.45

Tested by

no test coverage detected