QmlProjectManager: Pass target to QmlProjectEnvironmentAspect ctor

This avoids one use of IRunConfigurationAspect::runConfiguration()
which is meant to be removed soon.

Change-Id: Ib394a71b6bb7a6c028fc533656454b94895f6451
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2018-09-10 14:21:36 +02:00
parent a41097f66a
commit 0d687b7292
3 changed files with 10 additions and 6 deletions

View File

@@ -281,7 +281,7 @@ void MainQmlFileAspect::changeCurrentFile(IEditor *editor)
QmlProjectRunConfiguration::QmlProjectRunConfiguration(Target *target, Id id)
: RunConfiguration(target, id)
{
addAspect<QmlProjectEnvironmentAspect>();
addAspect<QmlProjectEnvironmentAspect>(target);
m_qmlViewerAspect = addAspect<BaseStringAspect>();
m_qmlViewerAspect->setLabelText(tr("QML viewer:"));
m_qmlViewerAspect->setPlaceHolderText(executable());