Skip to content
Snippets Groups Projects
Commit b395e5ad authored by Marco Bubke's avatar Marco Bubke
Browse files

Tweak frames for the form editor

parent 14a5e068
No related merge requests found
......@@ -116,8 +116,8 @@ void FormEditorGraphicsView::drawBackground(QPainter *painter, const QRectF &rec
painter->setBrushOrigin(0, 0);
painter->fillRect(rect.intersected(sceneRect()), backgroundBrush());
// paint rect around editable area
painter->setPen(Qt::darkGray);
QRectF frameRect = sceneRect().adjusted(-1, -1, 0, 0);
painter->setPen(Qt::black);
QRectF frameRect = sceneRect().adjusted(0, 0, 0, 0);
painter->drawRect(frameRect);
painter->restore();
}
......
......@@ -254,7 +254,8 @@ void FormEditorItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *,
painter->setRenderHint(QPainter::Antialiasing, false);
paintBoundingRect(painter);
if (!qmlItemNode().isRootModelNode())
paintBoundingRect(painter);
painter->restore();
}
......
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