Commit dc5a0e3e authored by Nikolai Kosjar's avatar Nikolai Kosjar

Project managers: Force "Parsing" notification

...so parsing progress will also be reported for projects consisting of
only one source file.

Task-number: QTCREATORBUG-9597

Change-Id: If35a00b6f949258d64921f144919269fa0c81d36
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 26fbefb2
...@@ -433,7 +433,8 @@ void AutotoolsProject::updateCppCodeModel() ...@@ -433,7 +433,8 @@ void AutotoolsProject::updateCppCodeModel()
pinfo.appendProjectPart(part); pinfo.appendProjectPart(part);
modelManager->updateProjectInfo(pinfo); modelManager->updateProjectInfo(pinfo);
modelManager->updateSourceFiles(m_files); modelManager->updateSourceFiles(m_files,
CppTools::CppModelManagerInterface::ForcedProgressNotification);
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty()); setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty());
} }
...@@ -391,7 +391,8 @@ bool CMakeProject::parseCMakeLists() ...@@ -391,7 +391,8 @@ bool CMakeProject::parseCMakeLists()
pinfo.appendProjectPart(part); pinfo.appendProjectPart(part);
modelmanager->updateProjectInfo(pinfo); modelmanager->updateProjectInfo(pinfo);
m_codeModelFuture.cancel(); m_codeModelFuture.cancel();
m_codeModelFuture = modelmanager->updateSourceFiles(m_files); m_codeModelFuture = modelmanager->updateSourceFiles(m_files,
CppTools::CppModelManagerInterface::ForcedProgressNotification);
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty()); setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty());
} }
......
...@@ -286,7 +286,8 @@ void GenericProject::refresh(RefreshOptions options) ...@@ -286,7 +286,8 @@ void GenericProject::refresh(RefreshOptions options)
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty()); setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty());
modelManager->updateProjectInfo(pinfo); modelManager->updateProjectInfo(pinfo);
m_codeModelFuture = modelManager->updateSourceFiles(filesToUpdate); m_codeModelFuture = modelManager->updateSourceFiles(filesToUpdate,
CppTools::CppModelManagerInterface::ForcedProgressNotification);
} }
} }
......
...@@ -597,7 +597,8 @@ void QbsProject::updateCppCodeModel(const qbs::ProjectData &prj) ...@@ -597,7 +597,8 @@ void QbsProject::updateCppCodeModel(const qbs::ProjectData &prj)
// Register update the code model: // Register update the code model:
modelmanager->updateProjectInfo(pinfo); modelmanager->updateProjectInfo(pinfo);
m_codeModelFuture = modelmanager->updateSourceFiles(allFiles); m_codeModelFuture = modelmanager->updateSourceFiles(allFiles,
CppTools::CppModelManagerInterface::ForcedProgressNotification);
} }
void QbsProject::updateQmlJsCodeModel(const qbs::ProjectData &prj) void QbsProject::updateQmlJsCodeModel(const qbs::ProjectData &prj)
......
...@@ -615,7 +615,8 @@ void Qt4Project::updateCppCodeModel() ...@@ -615,7 +615,8 @@ void Qt4Project::updateCppCodeModel()
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !allFiles.isEmpty()); setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !allFiles.isEmpty());
modelmanager->updateProjectInfo(pinfo); modelmanager->updateProjectInfo(pinfo);
m_codeModelFuture = modelmanager->updateSourceFiles(allFiles); m_codeModelFuture = modelmanager->updateSourceFiles(allFiles,
CppTools::CppModelManagerInterface::ForcedProgressNotification);
} }
void Qt4Project::updateQmlJSCodeModel() void Qt4Project::updateQmlJSCodeModel()
......
Markdown is supported
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