Commit 894c215a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.formEditor: remove yellow highlight for anchors

The yellow highlight was not intuitive.
Also I fixed the indentation.
parent 29c97b45
......@@ -236,27 +236,24 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
case FormEditorScene::AnchorMode: {
pen.setColor(Qt::black);
pen.setWidth(m_borderWidth);
}
break;
}
break;
case FormEditorScene::NormalMode: {
QColor frameColor("#AAAAAA");
if (qmlItemNode().anchors().instanceHasAnchors())
frameColor = QColor("#ffff00");
if (scene()->showBoundingRects()) {
if (m_highlightBoundingRect)
pen.setColor(frameColor);
else
pen.setColor(frameColor.darker(150));
} else {
if (m_highlightBoundingRect)
pen.setColor(frameColor);
else
pen.setColor(Qt::transparent);
}
QColor frameColor("#AAAAAA");
if (scene()->showBoundingRects()) {
if (m_highlightBoundingRect)
pen.setColor(frameColor);
else
pen.setColor(frameColor.darker(150));
} else {
if (m_highlightBoundingRect)
pen.setColor(frameColor);
else
pen.setColor(Qt::transparent);
}
break;
}
break;
}
painter->setPen(pen);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment