forked from qt-creator/qt-creator
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 <thomas.hartmann@qt.io>
This commit is contained in:
@@ -90,7 +90,7 @@ void RubberBandSelectionManipulator::select(SelectionType selectionType)
|
|||||||
if (!m_beginFormEditorItem)
|
if (!m_beginFormEditorItem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QList<QGraphicsItem*> itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::ContainsItemBoundingRect);
|
QList<QGraphicsItem*> itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::IntersectsItemBoundingRect);
|
||||||
QList<QmlItemNode> newNodeList;
|
QList<QmlItemNode> newNodeList;
|
||||||
|
|
||||||
foreach (QGraphicsItem* item, itemList)
|
foreach (QGraphicsItem* item, itemList)
|
||||||
|
|||||||
Reference in New Issue
Block a user