Variable manager: Add convenience method for expanding string.

Change-Id: I0e2cf4a9d39142ab3ae4c6cedb2d917822d1c1f5
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2013-03-13 14:25:47 +01:00
committed by hjk
parent c8421e66b6
commit 3a042b87a2
3 changed files with 10 additions and 6 deletions

View File

@@ -110,6 +110,11 @@ QString VariableManager::value(const QByteArray &variable, bool *found)
return d->m_map.value(variable);
}
QString VariableManager::expandedString(const QString &stringWithVariables)
{
return Utils::expandMacros(stringWithVariables, macroExpander());
}
Utils::AbstractMacroExpander *VariableManager::macroExpander()
{
return &d->m_macroExpander;