fix: edge bounding issues

This commit is contained in:
parker
2025-06-22 15:11:55 +01:00
parent 05f6674a70
commit 1f1250c076
5 changed files with 76 additions and 23 deletions

View File

@@ -16,6 +16,9 @@ public:
QPainterPath shape() const override;
void setColor(QColor color);
void useDefaultColor();
void setPos(QPointF pos1, QPointF pos2);
void setStartPos(QPointF pos);
void setEndPos(QPointF pos);
private:
SocketGraphic* socket1_;
@@ -23,5 +26,11 @@ private:
QColor color_;
QColor defaultColor_;
QPen pen_;
QPointF pos1_;
QPointF pos2_;
QPainterPath path_;
QRectF boundRect_;
void updatePath();
};