ProcessParameter: Ensure macro expansion is done in the main thread

The macro expanders are not thread safe. Also the values should be
expanded in init() as later changes to e.g. the buildconfiguration
should not affect the build anymore.

Change-Id: I82f5cd229d82cdb9f897c1db69c47b028cca29d1
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Daniel Teske
2012-11-28 15:29:55 +01:00
parent 2b2f41db4f
commit 2f862681d7
11 changed files with 18 additions and 0 deletions

View File

@@ -198,3 +198,10 @@ QString ProcessParameters::summaryInWorkdir(const QString &displayName) const
prettyArguments(),
QDir::toNativeSeparators(effectiveWorkingDirectory()));
}
void ProcessParameters::resolveAll()
{
effectiveCommand();
effectiveArguments();
effectiveWorkingDirectory();
}