ProjectExplorer: Provide run configuration name for macro expander

Change-Id: If04b824f4de18532d7561b86244464f8718fb8d7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-30 12:07:09 +03:00
committed by Orgad Shaneh
parent 6059527951
commit 01c91fc8f9

View File

@@ -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(); });
} }
/*! /*!