void Parser::addProject(const ParserTreeItem::Ptr &item, const QStringList &fileList, const QString &projectId) { // recalculate cache tree if needed ParserTreeItem::Ptr prj(getCachedOrParseProjectTree(fileList, projectId)); if (item.isNull()) return; // if there is an item - copy project tree to that item item->copy(prj); }