forked from qt-creator/qt-creator
QmlDesigner: Fix zoom to current selection
Fix zoom screen to current selection by adding the active manipulator layer items bounding box to the bounding box dictating the zoom. Task-number: QDS-15273 Change-Id: I33ab0eb09af2b7fa3a2a61788681c2558ab0a63d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
51b8427e60
commit
be2f2b5bb7
@@ -236,6 +236,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
|
|||||||
if (FormEditorItem *item = m_formEditorView->scene()->itemForQmlItemNode(node))
|
if (FormEditorItem *item = m_formEditorView->scene()->itemForQmlItemNode(node))
|
||||||
boundingRect |= item->sceneBoundingRect();
|
boundingRect |= item->sceneBoundingRect();
|
||||||
}
|
}
|
||||||
|
boundingRect |= m_formEditorView->scene()->manipulatorLayerItem()->boundingRect();
|
||||||
m_graphicsView->frame(boundingRect);
|
m_graphicsView->frame(boundingRect);
|
||||||
zoomOut();
|
zoomOut();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user