forked from qt-creator/qt-creator
ProjectExplorer: Provide run configuration name for macro expander
Change-Id: If04b824f4de18532d7561b86244464f8718fb8d7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6059527951
commit
01c91fc8f9
@@ -256,6 +256,9 @@ void RunConfiguration::ctor()
|
|||||||
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
||||||
return bc ? bc->macroExpander() : target()->macroExpander();
|
return bc ? bc->macroExpander() : target()->macroExpander();
|
||||||
});
|
});
|
||||||
|
expander->registerVariable("RunConfiguration:Name",
|
||||||
|
QCoreApplication::translate("ProjectExplorer", "Name of run configuration"),
|
||||||
|
[this] { return displayName(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user