feat: add delete edge gradient
This commit is contained in:
@@ -14,18 +14,24 @@ public:
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
QPainterPath shape() const override;
|
||||
void setColor(QColor color);
|
||||
void useDefaultColor();
|
||||
// void setColor(QColor color);
|
||||
// void useDefaultColor();
|
||||
void updateDeleteHighlightPen();
|
||||
void setPos(QPointF pos1, QPointF pos2);
|
||||
void setStartPos(QPointF pos);
|
||||
void setEndPos(QPointF pos);
|
||||
void cleanUp();
|
||||
void setDeleteHighlight(bool enable);
|
||||
QPen deleteHighlightPen_;
|
||||
QPen defaultPen_;
|
||||
|
||||
bool deleteHighlight_=false;
|
||||
|
||||
private:
|
||||
SocketGraphic* socket1_;
|
||||
SocketGraphic* socket2_;
|
||||
QColor color_;
|
||||
QColor defaultColor_;
|
||||
QPen pen_;
|
||||
QPointF pos1_;
|
||||
QPointF pos2_;
|
||||
QPainterPath path_;
|
||||
@@ -33,6 +39,5 @@ private:
|
||||
qreal padding_=40;
|
||||
|
||||
void updatePath();
|
||||
void cleanUp();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user