| 123 | } |
| 124 | |
| 125 | void 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 | |
| 148 | void DirectoryGenerator::handleItemUpdated(const QString &path) |
| 149 | { |
nothing calls this directly
no test coverage detected