forked from qt-creator/qt-creator
Set up hierarchy of ProjectConfiguration macro expanders.
BuildConfiguration asks Target, Deploy and Run ask either activeBuild, or Target. Change-Id: I3845cfbd16de7b85268d83b5324865ff24482152 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -254,7 +254,13 @@ void RunConfiguration::ctor()
|
||||
{
|
||||
connect(this, SIGNAL(enabledChanged()), this, SIGNAL(requestRunActionsUpdate()));
|
||||
|
||||
macroExpander()->registerSubProvider([this] { return target()->macroExpander(); });
|
||||
Utils::MacroExpander *expander = macroExpander();
|
||||
expander->setDisplayName(tr("Run Settings"));
|
||||
expander->setAccumulating(true);
|
||||
expander->registerSubProvider([this]() -> Utils::MacroExpander * {
|
||||
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
||||
return bc ? bc->macroExpander() : target()->macroExpander();
|
||||
});
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user