forked from qt-creator/qt-creator
QmlDesigner: Fix rubberband
Everyone agreed that the rubberband selection should be inclusive. There is no need to require that all items are sub children of the same item. This seems confusing. Change-Id: I5fffbc72e0ef15a82fc9f0ab589c865581359775 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -88,7 +88,7 @@ void RubberBandSelectionManipulator::select(SelectionType selectionType)
|
||||
if (!m_beginFormEditorItem)
|
||||
return;
|
||||
|
||||
QList<QGraphicsItem*> itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::IntersectsItemShape);
|
||||
QList<QGraphicsItem*> itemList = m_editorView->scene()->items(m_selectionRectangleElement.rect(), Qt::ContainsItemBoundingRect);
|
||||
QList<QmlItemNode> newNodeList;
|
||||
|
||||
foreach (QGraphicsItem* item, itemList)
|
||||
@@ -97,7 +97,6 @@ void RubberBandSelectionManipulator::select(SelectionType selectionType)
|
||||
|
||||
if (formEditorItem
|
||||
&& formEditorItem->qmlItemNode().isValid()
|
||||
&& m_beginFormEditorItem->childItems().contains(formEditorItem)
|
||||
&& formEditorItem->qmlItemNode().instanceIsMovable()
|
||||
&& formEditorItem->qmlItemNode().modelIsMovable()
|
||||
&& !formEditorItem->qmlItemNode().instanceIsInLayoutable())
|
||||
|
Reference in New Issue
Block a user