QmlDesigner: Use new validation approach in integration

Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I04a800edab774604d825d53a368d05b8520f9e22
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2022-08-31 10:23:13 +02:00
parent 578c6483b7
commit bc42c618e1

View File

@@ -560,7 +560,8 @@ void DesignDocument::paste()
targetNode = view.firstSelectedModelNode(); targetNode = view.firstSelectedModelNode();
// in case we copy and paste a selection we paste in the parent item // in case we copy and paste a selection we paste in the parent item
if ((view.selectedModelNodes().count() == selectedNodes.count()) && targetNode.isValid() && targetNode.hasParentProperty()) { if ((view.selectedModelNodes().count() == selectedNodes.count())
&& targetNode.hasParentProperty()) {
targetNode = targetNode.parentProperty().parentModelNode(); targetNode = targetNode.parentProperty().parentModelNode();
} else if (view.selectedModelNodes().isEmpty()) { } else if (view.selectedModelNodes().isEmpty()) {
// if selection is empty and copied nodes are all 3D nodes, paste them under the active scene // if selection is empty and copied nodes are all 3D nodes, paste them under the active scene