Qnx: use new runconfiguration aspect update mechanism

Change-Id: Ia81313e9b08ba5569f01c4d2bbf3c26c96cc78d4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-11-25 18:42:42 +01:00
parent 2a21ed069f
commit 6b4a0ed47d

View File

@@ -69,7 +69,7 @@ QnxRunConfiguration::QnxRunConfiguration(Target *target, Core::Id id)
libAspect->setLabelText(tr("Path to Qt libraries on device")); libAspect->setLabelText(tr("Path to Qt libraries on device"));
libAspect->setDisplayStyle(BaseStringAspect::LineEditDisplay); libAspect->setDisplayStyle(BaseStringAspect::LineEditDisplay);
auto updateTargetInformation = [this, target, exeAspect, symbolsAspect] { setUpdater([this, target, exeAspect, symbolsAspect] {
const BuildTargetInfo bti = buildTargetInfo(); const BuildTargetInfo bti = buildTargetInfo();
const FilePath localExecutable = bti.targetFilePath; const FilePath localExecutable = bti.targetFilePath;
@@ -79,10 +79,10 @@ QnxRunConfiguration::QnxRunConfiguration(Target *target, Core::Id id)
symbolsAspect->setFilePath(localExecutable); symbolsAspect->setFilePath(localExecutable);
emit enabledChanged(); emit enabledChanged();
}; });
connect(target, &Target::buildSystemUpdated, this, updateTargetInformation); connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
connect(target, &Target::kitChanged, this, updateTargetInformation); connect(target, &Target::kitChanged, this, &RunConfiguration::update);
} }
Runnable QnxRunConfiguration::runnable() const Runnable QnxRunConfiguration::runnable() const