aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-11-25 18:42:42 +0100
committerhjk <hjk@qt.io>2019-11-27 08:06:39 +0000
commit6b4a0ed47d121f2cb58966c1e05d989097a1d4fc (patch)
treed380483d677444bfd5f11bdc6d85111ad72e4acc /src/plugins/qnx
parent2a21ed069f224d5fc25ab877b25be0e7b0700b79 (diff)
Qnx: use new runconfiguration aspect update mechanism
Change-Id: Ia81313e9b08ba5569f01c4d2bbf3c26c96cc78d4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qnx')
-rw-r--r--src/plugins/qnx/qnxrunconfiguration.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qnx/qnxrunconfiguration.cpp b/src/plugins/qnx/qnxrunconfiguration.cpp
index 32791cf34f..3c634fdf2b 100644
--- a/src/plugins/qnx/qnxrunconfiguration.cpp
+++ b/src/plugins/qnx/qnxrunconfiguration.cpp
@@ -69,7 +69,7 @@ QnxRunConfiguration::QnxRunConfiguration(Target *target, Core::Id id)
libAspect->setLabelText(tr("Path to Qt libraries on device"));
libAspect->setDisplayStyle(BaseStringAspect::LineEditDisplay);
- auto updateTargetInformation = [this, target, exeAspect, symbolsAspect] {
+ setUpdater([this, target, exeAspect, symbolsAspect] {
const BuildTargetInfo bti = buildTargetInfo();
const FilePath localExecutable = bti.targetFilePath;
@@ -79,10 +79,10 @@ QnxRunConfiguration::QnxRunConfiguration(Target *target, Core::Id id)
symbolsAspect->setFilePath(localExecutable);
emit enabledChanged();
- };
+ });
- connect(target, &Target::buildSystemUpdated, this, updateTargetInformation);
- connect(target, &Target::kitChanged, this, updateTargetInformation);
+ connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
+ connect(target, &Target::kitChanged, this, &RunConfiguration::update);
}
Runnable QnxRunConfiguration::runnable() const