diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2015-06-08 02:14:29 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@petroules.com> | 2015-06-10 16:26:16 +0000 |
commit | d5330f3842266989cf5f8cae489a8a3e56cd956e (patch) | |
tree | 4dca4cc7d4ce4e4feb0d2a42d779a13a461fcc4a /src/lib/corelib/language/scriptengine.cpp | |
parent | b73531b1d29cf52f3891e719bea98a5a29fcba5d (diff) | |
download | qbs-d5330f3842266989cf5f8cae489a8a3e56cd956e.tar.gz |
Add a File.directoryEntries function to list directory contents.
Change-Id: I5470ecfa79d93207858ab661ff8e5e2cf80b75c8
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/corelib/language/scriptengine.cpp b/src/lib/corelib/language/scriptengine.cpp index 7cda02a14..23a487941 100644 --- a/src/lib/corelib/language/scriptengine.cpp +++ b/src/lib/corelib/language/scriptengine.cpp @@ -439,6 +439,13 @@ void ScriptEngine::addFileExistsResult(const QString &filePath, bool exists) m_fileExistsResult.insert(filePath, exists); } +void ScriptEngine::addDirectoryEntriesResult(const QString &path, QDir::Filters filters, + const QStringList &entries) +{ + m_directoryEntriesResult.insert(QPair<QString, quint32>(path, static_cast<quint32>(filters)), + entries); +} + void ScriptEngine::addFileLastModifiedResult(const QString &filePath, FileTime fileTime) { m_fileLastModifiedResult.insert(filePath, fileTime); |