Commit 7b0f9979 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: emit signal when project parts have been updated.

To be used in the ClangCodeModel, because there is no other way to find
out if the ProjectParts got changed.

Change-Id: Ie5681b4997adb9103499cf2864c81970cbd2be55
Reviewed-by: default avatarNikolai Kosjar <>
parent b5530555
......@@ -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<void> updateSourceFiles(const QStringList &sourceFiles) = 0;
......@@ -966,6 +966,8 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
if (!qgetenv("QTCREATOR_DUMP_PROJECT_INFO").isEmpty())
emit projectPartsUpdated(pinfo.project().data());
QList<CppModelManager::ProjectPart::Ptr> CppModelManager::projectPart(const QString &fileName) const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment