summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-09-27 10:03:37 +0200
committerEike Ziller <eike.ziller@qt.io>2022-09-27 10:03:37 +0200
commit7eaa36e6e58a7c4ff8ec8a691c2a5abc39ae5f30 (patch)
tree872b997978f8065ec1d58df52301d9e1b308683c /src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp
parent21c5d3499ba143f4ff703410174e27c11f7ddda3 (diff)
parent4da66867051b27354b71ff6b4690d4e2d1e53bd6 (diff)
downloadqt-creator-7eaa36e6e58a7c4ff8ec8a691c2a5abc39ae5f30.tar.gz
Merge remote-tracking branch 'origin/8.0' into 9.0
Conflicts: src/plugins/qmldesigner/components/materialbrowser/materialbrowserview.cpp src/plugins/qmldesigner/designercore/imagecache/meshimagecachecollector.cpp Change-Id: I38f196e8f42cf11f7b613e7a723745600e35c5e9
Diffstat (limited to 'src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp')
-rw-r--r--src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp b/src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp
index 422288c8b2..7dae1e900f 100644
--- a/src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp
+++ b/src/plugins/qmldesigner/components/materialbrowser/bundleimporter.cpp
@@ -97,8 +97,9 @@ QString BundleImporter::importComponent(const QString &qmlFile,
FilePath qmlSourceFile = bundleImportPath.resolvePath(FilePath::fromString(qmlFile));
const bool qmlFileExists = qmlSourceFile.exists();
const QString qmlType = qmlSourceFile.baseName();
- m_pendingTypes.append(QStringLiteral("%1.%2")
- .arg(QLatin1String(Constants::COMPONENT_BUNDLES_FOLDER).mid(1), qmlType));
+ m_pendingTypes.append(QStringLiteral("%1.%2.%3")
+ .arg(QLatin1String(Constants::COMPONENT_BUNDLES_FOLDER).mid(1),
+ m_bundleId, qmlType));
if (!qmldirContent.contains(qmlFile)) {
qmldirContent.append(qmlType);
qmldirContent.append(" 1.0 ");
@@ -159,10 +160,6 @@ QString BundleImporter::importComponent(const QString &qmlFile,
// If import is not yet possible, import statement needs to be added asynchronously to
// avoid errors, as code model update takes a while.
m_importAddPending = true;
-
- // Full reset is not necessary if new import directory appearing will trigger scanning,
- // but if directory existed but was not valid possible import, we need to do a reset.
- m_fullReset = bundleImportPathExists;
}
}
m_importTimerCount = 0;