forked from qt-creator/qt-creator
QmlDesigner: Block import of 3D types for Qt5 projects
Quick3D is not supported anymore for Qt5 projects, so we shouldn't allow 3D imports, either. Fixes: QDS-10662 Change-Id: I40da07a67e57527c7ad85443f2463e3f7783693f Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -1735,7 +1735,9 @@ void NodeInstanceView::handlePuppetToCreatorCommand(const PuppetToCreatorCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (command.type() == PuppetToCreatorCommand::Import3DSupport) {
|
} else if (command.type() == PuppetToCreatorCommand::Import3DSupport) {
|
||||||
const QVariantMap supportMap = qvariant_cast<QVariantMap>(command.data());
|
QVariantMap supportMap;
|
||||||
|
if (externalDependencies().isQt6Project())
|
||||||
|
supportMap = qvariant_cast<QVariantMap>(command.data());
|
||||||
emitImport3DSupportChanged(supportMap);
|
emitImport3DSupportChanged(supportMap);
|
||||||
} else if (command.type() == PuppetToCreatorCommand::NodeAtPos) {
|
} else if (command.type() == PuppetToCreatorCommand::NodeAtPos) {
|
||||||
auto data = qvariant_cast<QVariantList>(command.data());
|
auto data = qvariant_cast<QVariantList>(command.data());
|
||||||
|
Reference in New Issue
Block a user