feat: socket padding, fix floating edge start pos

This commit is contained in:
parker
2025-06-21 01:25:47 +01:00
parent 1cfcb0e429
commit b10f9322b2
4 changed files with 6 additions and 4 deletions

View File

@@ -11,7 +11,8 @@ SocketGraphic::SocketGraphic(QGraphicsItem *parent)
QRectF SocketGraphic::boundingRect() const
{
auto boundRect = QRect(-socketSize_/2, -socketSize_/2, socketSize_, socketSize_);
float paddingScale = 10;
auto boundRect = QRect(-socketSize_/2.0f*paddingScale, -socketSize_/2.0f*paddingScale, socketSize_*paddingScale, socketSize_*paddingScale);
return boundRect;
}