forked from qt-creator/qt-creator
DebuggingHelper: Use right toolchain
Don't just use an arbitrary toolchain, which might break esp. for Symbian. Instead, retrieve the toolchain from the project, or in the case of the Qt Options page let the user choose. Change-Id: I6d271c485420e609d223d8cece754ef84e573745 Reviewed-on: http://codereview.qt.nokia.com/1978 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
#include <qtsupport/qtversionmanager.h>
|
||||
#include <qmljs/qmljsmodelmanagerinterface.h>
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <projectexplorer/toolchainmanager.h>
|
||||
#include <utils/filesystemwatcher.h>
|
||||
|
||||
#include <QtCore/QTextStream>
|
||||
@@ -147,7 +147,11 @@ void QmlProject::refresh(RefreshOptions options)
|
||||
if (activeTarget()) {
|
||||
if (QmlProjectRunConfiguration *rc = qobject_cast<QmlProjectRunConfiguration *>(activeTarget()->activeRunConfiguration()))
|
||||
version = rc->qtVersion();
|
||||
QtSupport::QmlDumpTool::pathAndEnvironment(this, version, false, &pinfo.qmlDumpPath, &pinfo.qmlDumpEnvironment);
|
||||
QList<ProjectExplorer::ToolChain *> tcList
|
||||
= ProjectExplorer::ToolChainManager::instance()->findToolChains(version->qtAbis().at(0));
|
||||
if (tcList.isEmpty())
|
||||
return;
|
||||
QtSupport::QmlDumpTool::pathAndEnvironment(this, version, tcList.first(), false, &pinfo.qmlDumpPath, &pinfo.qmlDumpEnvironment);
|
||||
}
|
||||
m_modelManager->updateProjectInfo(pinfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user