From c09344ee62bf8f93b1ed355630df92e05c6a658b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jul 2019 15:21:37 +0200 Subject: [PATCH] QmlDesigner: Use intersection for selection This is the default for UI tools like Figma or Sketch. Task-number: QDS-853 Change-Id: Id4f5e0647b87169ec0fc0aaf02c6655ce0f78e45 Reviewed-by: Thomas Hartmann --- .../components/formeditor/rubberbandselectionmanipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/formeditor/rubberbandselectionmanipulator.cpp b/src/plugins/qmldesigner/components/formeditor/rubberbandselectionmanipulator.cpp index ccd5813a9f2..242b5649d27 100644 --- a/src/plugins/qmldesigner/components/formeditor/rubberbandselectionmanipulator.cpp +++ b/src/plugins/qmldesigner/components/formeditor/rubberbandselectionmanipulator.cpp @@ -90,7 +90,7 @@ void RubberBandSelectionManipulator::select(SelectionType selectionType) if (!m_beginFormEditorItem) return; - QList itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::ContainsItemBoundingRect); + QList itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::IntersectsItemBoundingRect); QList newNodeList; foreach (QGraphicsItem* item, itemList)