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