mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
moving the socket with a small offset to better align
This commit is contained in:
parent
287fc1b0f2
commit
1f622fb9b5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user