diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2015-07-21 00:59:54 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@petroules.com> | 2015-07-24 08:34:37 +0000 |
commit | e892568b556ed5587bf4820163c44cb56880c0e4 (patch) | |
tree | 0ffd857d3838b26e20f1c82ed9e3c146b628d720 /src/lib/corelib/language/scriptengine.cpp | |
parent | fe0a111c18e96168eb944f6d5bf20d067129b495 (diff) | |
download | qbs-e892568b556ed5587bf4820163c44cb56880c0e4.tar.gz |
Add a File.canonicalFilePath function.
Change-Id: I0759c9c81569d0bc3cc44937b7c4d6cce6af5d29
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/language/scriptengine.cpp')
-rw-r--r-- | src/lib/corelib/language/scriptengine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/corelib/language/scriptengine.cpp b/src/lib/corelib/language/scriptengine.cpp index c4e663323..fb80c03de 100644 --- a/src/lib/corelib/language/scriptengine.cpp +++ b/src/lib/corelib/language/scriptengine.cpp @@ -434,6 +434,12 @@ void ScriptEngine::addEnvironmentVariable(const QString &name, const QString &va m_usedEnvironment.insert(name, value); } +void ScriptEngine::addCanonicalFilePathResult(const QString &filePath, + const QString &resultFilePath) +{ + m_canonicalFilePathResult.insert(filePath, resultFilePath); +} + void ScriptEngine::addFileExistsResult(const QString &filePath, bool exists) { m_fileExistsResult.insert(filePath, exists); |