Commit c985914b authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlDesigner: fix ResizeHandle pen

Change-Id: I6b5733714a6d0cbf6d20dd74be88cdbdf7d7bd54
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <thomas.hartmann@qt.io>
parent 2257b032
......@@ -55,6 +55,10 @@ QRectF ResizeHandleItem::boundingRect() const
void ResizeHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem * /* option */, QWidget * /* widget */)
{
painter->save();
QPen pen = painter->pen();
pen.setWidth(1);
pen.setCosmetic(true);
painter->setPen(pen);
painter->setRenderHint(QPainter::Antialiasing, false);
painter->setBrush(QColor(255, 255, 255));
painter->drawRect(QRectF(-2., -2., 4., 4.));
......
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