change variable manager expansion style from ${} to %{}

this is less confusing, because it doesn't look like an environment
variable expansion under unix.
the syntax is a hybrid of printf format specifiers and braced unix
variable expansions.
This commit is contained in:
Oswald Buddenhagen
2010-11-03 18:26:46 +01:00
parent 0641ed0eaa
commit a2b6391b31

View File

@@ -150,7 +150,7 @@ QString VariableManager::resolve(const QString &stringWithVariables) const
QMapIterator<QString, QString> i(d->m_map);
while (i.hasNext()) {
i.next();
QString key = QLatin1String("${");
QString key = QLatin1String("%{");
key += i.key();
key += QLatin1Char('}');
result.replace(key, i.value());