forked from qt-creator/qt-creator
QmlDesigner: Add context object to a connection
Change-Id: I3662737acf3d80c17c8004594540220296971ef3 Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Aleksei German <aleksei.german@qt.io>
This commit is contained in:
@@ -83,11 +83,11 @@ QmlBuildSystem::QmlBuildSystem(Target *target)
|
|||||||
updateDeploymentData();
|
updateDeploymentData();
|
||||||
registerMenuButtons();
|
registerMenuButtons();
|
||||||
|
|
||||||
connect(target->project(), &Project::activeTargetChanged, [this](Target *target) {
|
connect(target->project(), &Project::activeTargetChanged, this, [this](Target *target) {
|
||||||
refresh(RefreshOptions::NoFileRefresh);
|
refresh(RefreshOptions::NoFileRefresh);
|
||||||
updateMcuBuildStep(target, qtForMCUs());
|
updateMcuBuildStep(target, qtForMCUs());
|
||||||
});
|
});
|
||||||
connect(target->project(), &Project::projectFileIsDirty, [this]() {
|
connect(target->project(), &Project::projectFileIsDirty, this, [this]() {
|
||||||
refresh(RefreshOptions::Project);
|
refresh(RefreshOptions::Project);
|
||||||
updateMcuBuildStep(project()->activeTarget(), qtForMCUs());
|
updateMcuBuildStep(project()->activeTarget(), qtForMCUs());
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user