Skip to content
Snippets Groups Projects
Commit 1086e387 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.formEditor: usablity fix

Displaying the bounding Rectangle  makes no sense for small/thin items.

Change-Id: Ia30692e0cfa2641cfe3b4962a2f54f9eafe50201
Reviewed-on: http://codereview.qt-project.org/4984


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 04510ee2
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,9 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
|| (QGraphicsItem::parentItem() == scene()->formLayerItem() && qFuzzyIsNull(m_borderWidth)))
return;
if (boundingRect().width() < 8 || boundingRect().height() < 8)
return;
QPen pen;
pen.setJoinStyle(Qt::MiterJoin);
pen.setStyle(Qt::DotLine);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment