| 146 | } |
| 147 | |
| 148 | void DirectoryGenerator::handleItemUpdated(const QString &path) |
| 149 | { |
| 150 | auto parser = qobject_cast<DirectoryAsynParse *>(sender()); |
| 151 | auto info = d->findGeneratorInfo(parser); |
| 152 | if (!info.item) |
| 153 | return; |
| 154 | |
| 155 | ProjectService *prjSrv = dpfGetService(ProjectService); |
| 156 | Q_ASSERT(prjSrv); |
| 157 | |
| 158 | auto item = parser->findItem(path, info.item); |
| 159 | if (!item) |
| 160 | item = info.item; |
| 161 | parser->updateItem(item); |
| 162 | if (auto model = info.item->model()) |
| 163 | Q_EMIT model->layoutChanged(); |
| 164 | prjSrv->restoreExpandState(item); |
| 165 | } |
nothing calls this directly
no test coverage detected