| 241 | } |
| 242 | |
| 243 | void ProjectCore::pluginsStartedMain() |
| 244 | { |
| 245 | auto &ctx = dpfInstance.serviceContext(); |
| 246 | ProjectService *projectService = ctx.service<ProjectService>(ProjectService::name()); |
| 247 | WindowService *windowService = ctx.service<WindowService>(WindowService::name()); |
| 248 | if (projectService && windowService) { |
| 249 | QString errorString; |
| 250 | if (!projectService->implGenerator<DirectoryGenerator>(DirectoryGenerator::toolKitName(), &errorString)) |
| 251 | qWarning() << errorString; |
| 252 | QStringList kitNames = projectService->supportGeneratorName<ProjectGenerator>(); |
| 253 | for (auto kitName : kitNames) { |
| 254 | auto generator = projectService->createGenerator<ProjectGenerator>(kitName); |
| 255 | if (generator) { |
| 256 | QObject::connect(generator, &ProjectGenerator::itemChanged, |
| 257 | ProjectKeeper::instance()->treeView(), |
| 258 | &ProjectTree::itemModified, Qt::UniqueConnection); |
| 259 | } |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | void ProjectCore::initOpenFilesWidget(dpfservice::WindowService *windowService) |
| 265 | { |
nothing calls this directly
no test coverage detected