QmlJS: Try to build qmldump when opening a Qml project.

To make plugin dumping work without having to compile the debugging
helpers explicitly.

Reviewed-by: Kai Koehne
This commit is contained in:
Christian Kamm
2010-09-30 14:38:56 +02:00
parent bb543b32a3
commit 00a8d9c32b
6 changed files with 170 additions and 56 deletions

View File

@@ -569,6 +569,9 @@ void Qt4Project::updateCppCodeModel()
void Qt4Project::updateQmlJSCodeModel()
{
if (m_projectFiles->files[QMLType].isEmpty())
return;
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
if (!modelManager)
return;
@@ -587,7 +590,7 @@ void Qt4Project::updateQmlJSCodeModel()
projectInfo.importPaths.removeDuplicates();
if (projectInfo.qmlDumpPath.isNull()) {
projectInfo.qmlDumpPath = QmlDumpTool::qmlDumpPath();
projectInfo.qmlDumpPath = QmlDumpTool::qmlDumpPath(this);
}
modelManager->updateProjectInfo(projectInfo);