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: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
306607e86a
commit
0bc56fec30
@@ -241,6 +241,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
|
||||
if (FormEditorItem *item = m_formEditorView->scene()->itemForQmlItemNode(node))
|
||||
boundingRect |= item->sceneBoundingRect();
|
||||
}
|
||||
boundingRect |= m_formEditorView->scene()->manipulatorLayerItem()->boundingRect();
|
||||
m_graphicsView->frame(boundingRect);
|
||||
zoomOut();
|
||||
}
|
||||
|
Reference in New Issue
Block a user