24 #ifndef CONNECTIONLINE_H_
25 #define CONNECTIONLINE_H_
27 #include <QGraphicsItem>
71 QPainter *painter,
const QStyleOptionGraphicsItem *option,
QPointF _startPoint
point where line starts
void setEndProp(NodeProperty *endProp)
sets end property
QGraphicsItem that contains nodeproperties and draws the node.
NodeProperty * getEndProp() const
get property at end of line
QColor _lColor
store color
NodeProperty * getStartProp() const
get property at start of line
NodeProperty * _endProp
property where line ends
void setLineColor(const QColor &newColor)
set color connected line
NodeProperty * _startProp
property where line starts
QPointF _endPoint
point where line ends
QRectF boundingRect() const
bounding Rect, always 0 to be not selectable
void setStartProp(NodeProperty *startProp)
sets start property
void setStartPoint(int x, int y)
sets start point (for drawing)
void moveEndPoint(qreal dx, qreal dy)
moves end point
Line that connects two slots of two different nodes.
void moveStartPoint(qreal dx, qreal dy)
moves start point
Property(/Parameter) of a node.
ConnectionLine()
Default constructor.
void setStartEndProp(NodeProperty *start, NodeProperty *end)
sets start and end property
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
paints the line
QColor lineColor() const
return line color
void setEndPoint(int x, int y)
sets end point (for drawing)