forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user