MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / projectItemsCreated

Method projectItemsCreated

src/services/project/directorygenerator.cpp:125–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void DirectoryGenerator::projectItemsCreated(QList<QStandardItem *> itemList)
126{
127 auto parser = qobject_cast<DirectoryAsynParse *>(sender());
128 auto info = d->findGeneratorInfo(parser);
129 if (!info.item)
130 return;
131
132 auto sourceFiles = parser->getFilelist();
133 ProjectInfo tempInfo = info.projectInfo;
134 tempInfo.setSourceFiles(sourceFiles);
135 ProjectInfo::set(info.item, tempInfo);
136 project.activeProject(tempInfo.kitName(), tempInfo.language(), tempInfo.workspaceFolder());
137
138 if (info.item) {
139 while (info.item->hasChildren()) {
140 info.item->removeRow(0);
141 }
142 info.item->appendRows(itemList);
143 }
144
145 info.item->setData(Project::Done, Project::ParsingStateRole);
146}
147
148void DirectoryGenerator::handleItemUpdated(const QString &path)
149{

Callers

nothing calls this directly

Calls 8

setFunction · 0.85
findGeneratorInfoMethod · 0.80
getFilelistMethod · 0.80
setSourceFilesMethod · 0.80
kitNameMethod · 0.45
languageMethod · 0.45
hasChildrenMethod · 0.45
setDataMethod · 0.45

Tested by

no test coverage detected