forked from qt-creator/qt-creator
QmlDesigner: Remove NodeMetaInfo::typeName() usage
The project storage is using the imports of a document to get the type. So it is not using qualified types and gets the version from the imports. After we switch all three methods will be removed. Task-number: QDS-10266 Change-Id: Ic127a3bb6bd6f559457b3ce6a8631774359259a5 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -206,13 +206,27 @@ void ContentLibraryMaterialsModel::createImporter(const QString &bundlePath, con
|
||||
const QStringList &sharedFiles)
|
||||
{
|
||||
m_importer = new Internal::ContentLibraryBundleImporter(bundlePath, bundleId, sharedFiles);
|
||||
connect(m_importer, &Internal::ContentLibraryBundleImporter::importFinished, this,
|
||||
#ifdef QDS_USE_PROJECTSTORAGE
|
||||
connect(m_importer,
|
||||
&Internal::ContentLibraryBundleImporter::importFinished,
|
||||
this,
|
||||
[&](const QmlDesigner::TypeName &typeName) {
|
||||
m_importerRunning = false;
|
||||
emit importerRunningChanged();
|
||||
if (typeName.size())
|
||||
emit bundleMaterialImported(typeName);
|
||||
});
|
||||
#else
|
||||
connect(m_importer,
|
||||
&Internal::ContentLibraryBundleImporter::importFinished,
|
||||
this,
|
||||
[&](const QmlDesigner::NodeMetaInfo &metaInfo) {
|
||||
m_importerRunning = false;
|
||||
emit importerRunningChanged();
|
||||
if (metaInfo.isValid())
|
||||
emit bundleMaterialImported(metaInfo);
|
||||
});
|
||||
#endif
|
||||
|
||||
connect(m_importer, &Internal::ContentLibraryBundleImporter::unimportFinished, this,
|
||||
[&](const QmlDesigner::NodeMetaInfo &metaInfo) {
|
||||
|
||||
Reference in New Issue
Block a user