diff --git a/src/plugins/cpptools/ModelManagerInterface.h b/src/plugins/cpptools/ModelManagerInterface.h index 0d0bdf6f2d7..e340ddbe467 100644 --- a/src/plugins/cpptools/ModelManagerInterface.h +++ b/src/plugins/cpptools/ModelManagerInterface.h @@ -239,6 +239,11 @@ Q_SIGNALS: void sourceFilesRefreshed(const QStringList &files); void extraDiagnosticsUpdated(QString fileName); + /// \brief Emitted after updateProjectInfo method is called on the model-manager. + /// + /// Other classes can use this to get notified when the \c ProjectExplorer has updated the parts. + void projectPartsUpdated(ProjectExplorer::Project *project); + public Q_SLOTS: virtual void updateModifiedSourceFiles() = 0; virtual QFuture updateSourceFiles(const QStringList &sourceFiles) = 0; diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 0cbba61d5f7..0d75816c7f0 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -966,6 +966,8 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo) if (!qgetenv("QTCREATOR_DUMP_PROJECT_INFO").isEmpty()) dumpModelManagerConfiguration(); + + emit projectPartsUpdated(pinfo.project().data()); } QList CppModelManager::projectPart(const QString &fileName) const