diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2024-10-14 12:31:16 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2024-10-31 11:49:54 +0100 |
| commit | 660fc8fb7d1976f5f10fbf6381e7f372f71e0f59 (patch) | |
| tree | 7258c3c88085968e4b13b3d684bbde6f98100b64 /tools | |
| parent | 00f58f2eca6bfcc66dcc79c249e51d2d34eb6a11 (diff) | |
QmlCompiler: Rename QQmlJSLogger's fileName to filePath
This is done in prepartion for the following patch in the chain.
Pick-to: 6.8
Change-Id: If8ce75be8ba00e7e4cdd5a0f5e66319ab0d36755
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/qmltc/main.cpp | 2 | ||||
| -rw-r--r-- | tools/qmltc/qmltcvisitor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmltc/main.cpp b/tools/qmltc/main.cpp index 1899f4087e..3d412182ea 100644 --- a/tools/qmltc/main.cpp +++ b/tools/qmltc/main.cpp @@ -268,7 +268,7 @@ int main(int argc, char **argv) importer.setImportVisitor(qmltcVisitor); QQmlJSLogger logger; - logger.setFileName(url); + logger.setFilePath(url); logger.setCode(sourceCode); setupLogger(logger); diff --git a/tools/qmltc/qmltcvisitor.cpp b/tools/qmltc/qmltcvisitor.cpp index 7eac98da0e..c9f2cf2640 100644 --- a/tools/qmltc/qmltcvisitor.cpp +++ b/tools/qmltc/qmltcvisitor.cpp @@ -74,7 +74,7 @@ QmltcVisitor::QmltcVisitor(const QQmlJSScope::Ptr &target, QQmlJSImporter *impor const QStringList &qmldirFiles) : QQmlJSImportVisitor(target, importer, logger, implicitImportDirectory, qmldirFiles) { - m_qmlTypeNames.append(QFileInfo(logger->fileName()).baseName()); // put document root + m_qmlTypeNames.append(QFileInfo(logger->filePath()).baseName()); // put document root } void QmltcVisitor::findCppIncludes() |
