forked from qt-creator/qt-creator
QtSupport: Use current aspect ctor pattern for Qml related aspect
Task-number: QTCREATORBUG-29168 Change-Id: I3779ed4075dc98ccafc2490009d1217e908ad83c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -173,14 +173,16 @@ QmakeBuildConfiguration::QmakeBuildConfiguration(Target *target, Id id)
|
||||
qmakeBuildSystem()->scheduleUpdateAllNowOrLater();
|
||||
});
|
||||
|
||||
const auto qmlDebuggingAspect = addAspect<QmlDebuggingAspect>(this);
|
||||
const auto qmlDebuggingAspect = addAspect<QmlDebuggingAspect>();
|
||||
qmlDebuggingAspect->setBuildConfiguration(this);
|
||||
connect(qmlDebuggingAspect, &QmlDebuggingAspect::changed, this, [this] {
|
||||
emit qmlDebuggingChanged();
|
||||
emit qmakeBuildConfigurationChanged();
|
||||
qmakeBuildSystem()->scheduleUpdateAllNowOrLater();
|
||||
});
|
||||
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>(this);
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>();
|
||||
qtQuickCompilerAspect->setBuildConfiguration(this);
|
||||
connect(qtQuickCompilerAspect, &QtQuickCompilerAspect::changed, this, [this] {
|
||||
emit useQtQuickCompilerChanged();
|
||||
emit qmakeBuildConfigurationChanged();
|
||||
|
||||
Reference in New Issue
Block a user