void PchManager::clangProjectSettingsChanged() { ClangProjectSettings *cps = qobject_cast<ClangProjectSettings *>(sender()); if (!cps) return; onProjectPartsUpdated(cps->project()); }
void PchManager::onProjectPartsUpdated(ProjectExplorer::Project *project) { ClangProjectSettings *cps = settingsForProject(project); Q_ASSERT(cps); CppTools::CppModelManagerInterface *mmi = CppTools::CppModelManagerInterface::instance(); const QList<ProjectPart::Ptr> projectParts = mmi->projectInfo( cps->project()).projectParts(); updatePchInfo(cps, projectParts); emit pchInfoUpdated(); }