forked from qt-creator/qt-creator
QmlDesigner: Do not show bounding rectangles by default
The bounding rectangles can be confusing and break WYSIWYG. Therefore we disable them by default. Change-Id: I3713e668b916607670255715e0d41f76a789b34e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
44c02b52a3
commit
372d37d40a
@@ -51,7 +51,7 @@ namespace QmlDesigner {
|
||||
FormEditorScene::FormEditorScene(FormEditorWidget *view, FormEditorView *editorView)
|
||||
: QGraphicsScene(),
|
||||
m_editorView(editorView),
|
||||
m_showBoundingRects(true)
|
||||
m_showBoundingRects(false)
|
||||
{
|
||||
setupScene();
|
||||
view->setScene(this);
|
||||
|
@@ -107,7 +107,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
|
||||
m_showBoundingRectAction->setShortcut(Qt::Key_A);
|
||||
m_showBoundingRectAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
|
||||
m_showBoundingRectAction->setCheckable(true);
|
||||
m_showBoundingRectAction->setChecked(true);
|
||||
m_showBoundingRectAction->setChecked(false);
|
||||
m_showBoundingRectAction->setIcon(Utils::Icons::BOUNDING_RECT.icon());
|
||||
|
||||
addAction(m_showBoundingRectAction.data());
|
||||
|
Reference in New Issue
Block a user