aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/boot2qt
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-07-05 08:56:05 +0200
committerhjk <hjk@qt.io>2023-07-05 12:55:31 +0000
commit739f835ef17bec651deb3f25995fdceb27e5f4f1 (patch)
tree08e85e60db366d5f1e1a2b20c069e9fd06f67cf1 /src/plugins/boot2qt
parent7e0534c301d1b749c6c6af725afbb8a651022eb9 (diff)
ProjectExplorer: Remove unusual {Arguments,WorkingDir}Aspect
Follows suite to 2cc4967 to have the user side code more uniform. Most of the extra verbosity (setMacroExpander) can go away again when distributing the expander via the "owning" AspectContainer. Change-Id: I9e80cb235f0a4a9ebee601dd638aefbaa41efc1b Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/boot2qt')
-rw-r--r--src/plugins/boot2qt/qdbrunconfiguration.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/boot2qt/qdbrunconfiguration.cpp b/src/plugins/boot2qt/qdbrunconfiguration.cpp
index 2885387764..efc4886b3b 100644
--- a/src/plugins/boot2qt/qdbrunconfiguration.cpp
+++ b/src/plugins/boot2qt/qdbrunconfiguration.cpp
@@ -82,8 +82,14 @@ QdbRunConfiguration::QdbRunConfiguration(Target *target, Id id)
auto envAspect = addAspect<RemoteLinux::RemoteLinuxEnvironmentAspect>(target);
- addAspect<ArgumentsAspect>(macroExpander());
- addAspect<WorkingDirectoryAspect>(macroExpander(), envAspect);
+ auto argsAspect = addAspect<ArgumentsAspect>();
+ argsAspect->setMacroExpander(macroExpander());
+
+ auto workingDirAspect = addAspect<WorkingDirectoryAspect>();
+ workingDirAspect->setMacroExpander(macroExpander());
+
+ workingDirAspect->setEnvironment(envAspect);
+
addAspect<FullCommandLineAspect>(this);
setUpdater([this, target, exeAspect, symbolsAspect] {