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

Method hasFileOrFolder

kdevplatform/project/projectmodel.cpp:638–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638bool ProjectFolderItem::hasFileOrFolder(const QString& name) const
639{
640 const auto children = this->children();
641 return std::any_of(children.begin(), children.end(), [&](ProjectBaseItem* item) {
642 return ((item->type() == Folder || item->type() == File || item->type() == BuildFolder)
643 && name == item->baseName());
644 });
645}
646
647bool ProjectBaseItem::isProjectRoot() const
648{

Callers 2

canLaunchMethod · 0.80

Calls 5

baseNameMethod · 0.80
childrenMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45

Tested by 1