ProjectExplorer: Rename RunConfiguration:Name -> CurrentRun:Name

Similar variables don't contain "Configuration" in their names. For
example: CurrentBuild:Name.

+ make it available globally.

Change-Id: Ie094e2f7afc449d678cf0afec1548350f03ead77
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-31 17:09:56 +03:00
committed by Orgad Shaneh
parent 1d0e1633c2
commit 3805512156
3 changed files with 13 additions and 3 deletions

View File

@@ -256,9 +256,9 @@ void RunConfiguration::ctor()
BuildConfiguration *bc = target()->activeBuildConfiguration();
return bc ? bc->macroExpander() : target()->macroExpander();
});
expander->registerVariable("RunConfiguration:Name",
QCoreApplication::translate("ProjectExplorer", "Name of run configuration"),
[this] { return displayName(); });
expander->registerVariable(Constants::VAR_CURRENTRUN_NAME,
QCoreApplication::translate("ProjectExplorer", "The currently active run configuration's name."),
[this] { return displayName(); }, false);
}
/*!