forked from qt-creator/qt-creator
QtQuickCompilerAspect: Compile fix
Amends 5da8695dca
Change-Id: I532df0d3488750f5792f4ec09558d48d7e3ed752
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -136,7 +136,7 @@ QbsBuildConfiguration::QbsBuildConfiguration(Target *target, Utils::Id id)
|
||||
connect(qmlDebuggingAspect, &QtSupport::QmlDebuggingAspect::changed,
|
||||
this, &QbsBuildConfiguration::qbsConfigurationChanged);
|
||||
|
||||
const auto qtQuickCompilerAspect = addAspect<QtSupport::QtQuickCompilerAspect>();
|
||||
const auto qtQuickCompilerAspect = addAspect<QtSupport::QtQuickCompilerAspect>(qmlDebuggingAspect);
|
||||
qtQuickCompilerAspect->setKit(target->kit());
|
||||
connect(qtQuickCompilerAspect, &QtSupport::QtQuickCompilerAspect::changed,
|
||||
this, &QbsBuildConfiguration::qbsConfigurationChanged);
|
||||
|
@@ -197,7 +197,7 @@ QmakeBuildConfiguration::QmakeBuildConfiguration(Target *target, Utils::Id id)
|
||||
qmakeBuildSystem()->scheduleUpdateAllNowOrLater();
|
||||
});
|
||||
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>();
|
||||
const auto qtQuickCompilerAspect = addAspect<QtQuickCompilerAspect>(qmlDebuggingAspect);
|
||||
qtQuickCompilerAspect->setKit(target->kit());
|
||||
connect(qtQuickCompilerAspect, &QtQuickCompilerAspect::changed, this, [this] {
|
||||
emit useQtQuickCompilerChanged();
|
||||
|
@@ -76,7 +76,8 @@ void QmlDebuggingAspect::addToLayout(LayoutBuilder &builder)
|
||||
changeHandler();
|
||||
}
|
||||
|
||||
QtQuickCompilerAspect::QtQuickCompilerAspect()
|
||||
QtQuickCompilerAspect::QtQuickCompilerAspect(QmlDebuggingAspect *qmlAspect)
|
||||
: m_qmlDebuggingAspect(qmlAspect)
|
||||
{
|
||||
setSettingsKey("QtQuickCompiler");
|
||||
setDisplayName(tr("Qt Quick Compiler:"));
|
||||
@@ -114,9 +115,4 @@ void QtQuickCompilerAspect::addToLayout(LayoutBuilder &builder)
|
||||
changeHandler();
|
||||
}
|
||||
|
||||
void QtQuickCompilerAspect::acquaintSiblings(const AspectContainer &siblings)
|
||||
{
|
||||
m_qmlDebuggingAspect = siblings.aspect<QmlDebuggingAspect>();
|
||||
}
|
||||
|
||||
} // namespace QtSupport
|
||||
|
@@ -50,13 +50,12 @@ class QTSUPPORT_EXPORT QtQuickCompilerAspect : public Utils::TriStateAspect
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QtQuickCompilerAspect();
|
||||
QtQuickCompilerAspect(QmlDebuggingAspect *qmlAspect);
|
||||
|
||||
void setKit(const ProjectExplorer::Kit *kit) { m_kit = kit; }
|
||||
|
||||
private:
|
||||
void addToLayout(Utils::LayoutBuilder &builder) override;
|
||||
void acquaintSiblings(const Utils::AspectContainer &siblings) override;
|
||||
|
||||
const ProjectExplorer::Kit *m_kit = nullptr;
|
||||
const QmlDebuggingAspect *m_qmlDebuggingAspect = nullptr;
|
||||
|
Reference in New Issue
Block a user