forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user