forked from qt-creator/qt-creator
QmlDesigner: Fix bundle imported material's metainfo type
Fixes: QDS-7749 Change-Id: I50993304b3cae7452ff3fcb4d37af0f8663c0199 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -97,8 +97,9 @@ QString BundleImporter::importComponent(const QString &qmlFile,
|
|||||||
FilePath qmlSourceFile = bundleImportPath.resolvePath(FilePath::fromString(qmlFile));
|
FilePath qmlSourceFile = bundleImportPath.resolvePath(FilePath::fromString(qmlFile));
|
||||||
const bool qmlFileExists = qmlSourceFile.exists();
|
const bool qmlFileExists = qmlSourceFile.exists();
|
||||||
const QString qmlType = qmlSourceFile.baseName();
|
const QString qmlType = qmlSourceFile.baseName();
|
||||||
m_pendingTypes.append(QStringLiteral("%1.%2")
|
m_pendingTypes.append(QStringLiteral("%1.%2.%3")
|
||||||
.arg(QLatin1String(Constants::COMPONENT_BUNDLES_FOLDER).mid(1), qmlType));
|
.arg(QLatin1String(Constants::COMPONENT_BUNDLES_FOLDER).mid(1),
|
||||||
|
m_bundleId, qmlType));
|
||||||
if (!qmldirContent.contains(qmlFile)) {
|
if (!qmldirContent.contains(qmlFile)) {
|
||||||
qmldirContent.append(qmlType);
|
qmldirContent.append(qmlType);
|
||||||
qmldirContent.append(" 1.0 ");
|
qmldirContent.append(" 1.0 ");
|
||||||
|
Reference in New Issue
Block a user