27 #include <QGraphicsPathItem>
28 #include <qpropertyanimation.h>
42 class TransitionLabel;
46 ,
public QGraphicsPathItem
70 void paint(QPainter* painter, const QStyleOptionGraphicsItem*
option, QWidget* widget) override;
71 QPainterPath
shape() const override;
75 QPolygonF
calcHull(QPainter* painter = 0) const;
92 QPointF calcIntersection(statechartmodel::
StateInstancePtr state, const QPointF& supportPoint) const;
93 QPointF calcIntersection(statechartmodel::
StateInstancePtr state, QLineF centerLine, const QPointF& supportPoint) const;
94 QPolygonF calcArrowHead(const QLineF& line);
95 void recalcLabelPose();
96 float calcLengthOfLine(QPointF start, QPointF end);
101 QRectF initialStateCircle;
103 int pointAttachedToMouse;
105 QPropertyAnimation animation;
117 public QGraphicsSimpleTextItem,
121 Q_PROPERTY(qreal fontPointSize READ fontPointSize WRITE setFontPointSize)
126 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*
option, QWidget* widget)
override;
127 qreal fontPointSize()
const;
128 qreal baseFontPointSize()
const;
129 void setBaseFontPointSize(qreal newFontSize);
130 void setFontPointSize(qreal newFontSize);
131 void setEnlargedFontPointSize(qreal newFontSize);
132 void setHovering(
bool hovering);
133 bool getHovering()
const;