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:
Thomas Hartmann
2017-12-11 14:51:05 +01:00
committed by Tim Jenssen
parent 44c02b52a3
commit 372d37d40a
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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());