feat: edge hover detection

This commit is contained in:
parker
2025-06-21 22:31:53 +01:00
parent 06e66f7282
commit 5e70d14d5c
4 changed files with 103 additions and 2 deletions

View File

@@ -12,9 +12,14 @@ public:
QRectF boundingRect() const override;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
QPainterPath shape() const override;
void setColor(QColor color);
void useDefaultColor();
private:
SocketGraphic* socket1_;
SocketGraphic* socket2_;
QColor color_;
QColor defaultColor_;
};