forked from qt-creator/qt-creator
Debugger/JS Code model: Set environment for QML tools correctly.
Set complete build environment (MinGW). Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Task-number: QTCREATORBUG-2883
This commit is contained in:
@@ -131,11 +131,16 @@ void QmlProject::refresh(RefreshOptions options)
|
||||
QmlJS::ModelManagerInterface::ProjectInfo pinfo(this);
|
||||
pinfo.sourceFiles = files();
|
||||
pinfo.importPaths = importPaths();
|
||||
pinfo.qmlDumpPath = Qt4ProjectManager::QmlDumpTool::qmlDumpPath(this);
|
||||
|
||||
if (pinfo.qmlDumpPath.isNull()) {
|
||||
pinfo.qmlDumpPath = Qt4ProjectManager::QmlDumpTool::qmlDumpPath(this);
|
||||
if (activeTarget()) {
|
||||
if (const QmlProjectRunConfiguration *runConfig =
|
||||
qobject_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration())) {
|
||||
if (runConfig->qtVersion()) {
|
||||
pinfo.qmlDumpEnvironment = runConfig->qtVersion()->qmlToolsEnvironment();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_modelManager->updateProjectInfo(pinfo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user