diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-22 16:00:56 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-24 13:01:42 +0100 |
commit | 74bf3c8c333c30f4d3b4db31b5cc0b5150a08c88 (patch) | |
tree | 54bbffdbf74dc20cf8bdf22b34e46dc9c75c62b6 /tools/qmlimportscanner/main.cpp | |
parent | c603d30887d6b56ec7e67f9adfcfe01ca3d9b523 (diff) |
Rework QQmlJSResourceFileMapper
We need more generic filtering capabilities so that it can, for example,
retrieve all the .qml files in a directory, both as qrc paths and local
file paths.
Change-Id: I72a72abc6dd39adb41bcd035f7aa6777e50cb5a5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tools/qmlimportscanner/main.cpp')
-rw-r--r-- | tools/qmlimportscanner/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qmlimportscanner/main.cpp b/tools/qmlimportscanner/main.cpp index 9313dee634..ea17df921f 100644 --- a/tools/qmlimportscanner/main.cpp +++ b/tools/qmlimportscanner/main.cpp @@ -631,8 +631,10 @@ int main(int argc, char *argv[]) } } - if (!qrcFiles.isEmpty()) - scanFiles << QQmlJSResourceFileMapper(qrcFiles).qmlCompilerFiles(QQmlJSResourceFileMapper::FileOutput::AbsoluteFilePath); + if (!qrcFiles.isEmpty()) { + scanFiles << QQmlJSResourceFileMapper(qrcFiles).filePaths( + QQmlJSResourceFileMapper::allQmlJSFilter()); + } g_qmlImportPaths = qmlImportPaths; |