diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-02-08 13:57:55 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-02-08 20:30:12 +0100 |
commit | cfd461d438d40cc55e8085b79d0e4b2c03371e46 (patch) | |
tree | 2f4ab723ab0fdea4ae04e8f338448c50c6c39ad6 | |
parent | 2a6897b9cee24c1631655c02cd41c3640e9d807a (diff) |
Revert "Trim file names before adding them to qml components and scripts"
This reverts commit 5dffe98733ba05a8da801af0008f085ec2857ddd.
Reason for revert: This breaks Quick style plugin loading QTBUG-110433
Task-number: QTBUG-36637
Task-number: QTBUG-97834
Task-number: QTBUG-110433
Change-Id: I6f03cfe2633408e057a8c640acda5b59f5e5840c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tools/qmlimportscanner/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlimportscanner/main.cpp b/tools/qmlimportscanner/main.cpp index 6e2300a069..52eebcdf65 100644 --- a/tools/qmlimportscanner/main.cpp +++ b/tools/qmlimportscanner/main.cpp @@ -182,11 +182,11 @@ QVariantMap pluginsForModulePath(const QString &modulePath) { } else if (sections.size() == 2 && sectionType != "module" && sectionType != "typeinfo") { componentFiles.append(modulePath + QLatin1Char('/') - + QString::fromUtf8(sections.at(1)).trimmed()); + + QString::fromUtf8(sections.at(1))); } else if (sections.size() == 3 || (sectionType == "singleton" && sections.size() == 4)) { int fileNameIndex = (sectionType == "singleton") ? 3 : 2; - const QString fileName = QString::fromUtf8(sections.at(fileNameIndex)).trimmed(); + const QString fileName = QString::fromUtf8(sections.at(fileNameIndex)); const QString filePath = modulePath + QLatin1Char('/') + fileName; if (fileName.endsWith(QLatin1String(".js")) || fileName.endsWith(QLatin1String(".mjs"))) |