forked from qt-creator/qt-creator
QmlDesigner: fix ResizeHandle pen
Change-Id: I6b5733714a6d0cbf6d20dd74be88cdbdf7d7bd54 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
2257b03212
commit
c985914bde
@@ -55,6 +55,10 @@ QRectF ResizeHandleItem::boundingRect() const
|
|||||||
void ResizeHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem * /* option */, QWidget * /* widget */)
|
void ResizeHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem * /* option */, QWidget * /* widget */)
|
||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
|
QPen pen = painter->pen();
|
||||||
|
pen.setWidth(1);
|
||||||
|
pen.setCosmetic(true);
|
||||||
|
painter->setPen(pen);
|
||||||
painter->setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, false);
|
||||||
painter->setBrush(QColor(255, 255, 255));
|
painter->setBrush(QColor(255, 255, 255));
|
||||||
painter->drawRect(QRectF(-2., -2., 4., 4.));
|
painter->drawRect(QRectF(-2., -2., 4., 4.));
|
||||||
|
Reference in New Issue
Block a user