moving the socket with a small offset to better align

This commit is contained in:
jonathanlurie 2025-05-14 16:53:29 +02:00
parent 287fc1b0f2
commit 1f622fb9b5

View File

@ -198,7 +198,9 @@ void QgsModelDesignerSocketGraphicItem::paint( QPainter *painter, const QStyleOp
painter->setRenderHint( QPainter::Antialiasing );
constexpr float DISPLAY_SIZE = 4;
painter->drawEllipse( position(), DISPLAY_SIZE, DISPLAY_SIZE );
float ellipseOffset = 0.4;
QPointF ellipsePosition = QPointF( position().x() + ellipseOffset, position().y() + ellipseOffset );
painter->drawEllipse( ellipsePosition, DISPLAY_SIZE, DISPLAY_SIZE );
/* Uncomment to display bounding box */
#if 0
painter->save();