forked from qt-creator/qt-creator
Pass BuildConfiguration to Qml related build aspects constructors
Less weird then before. Change-Id: Ia36663721085132e6a2876783749d96d9a3983a3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -189,16 +189,14 @@ QmakeBuildConfiguration::QmakeBuildConfiguration(Target *target, Utils::Id id)
|
||||
qmakeBuildSystem()->scheduleUpdateAllNowOrLater();
|
||||
});
|
||||
|
||||
const auto qmlDebuggingAspect = addAspect<QmlDebuggingAspect>();
|
||||
qmlDebuggingAspect->setKit(target->kit());
|
||||
const auto qmlDebuggingAspect = addAspect<QmlDebuggingAspect>(this);
|
||||
connect(qmlDebuggingAspect, &QmlDebuggingAspect::changed, this, [this] {
|
||||
emit qmlDebuggingChanged();
|
||||
emit qmakeBuildConfigurationChanged();
|
||||
qmakeBuildSystem()->scheduleUpdateAllNowOrLater();
|
||||
});
|
||||
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>(qmlDebuggingAspect);
|
||||
qtQuickCompilerAspect->setKit(target->kit());
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>(this);
|
||||
connect(qtQuickCompilerAspect, &QtQuickCompilerAspect::changed, this, [this] {
|
||||
emit useQtQuickCompilerChanged();
|
||||
emit qmakeBuildConfigurationChanged();
|
||||
|
||||
Reference in New Issue
Block a user