|
- #ifndef CONNECTION_H
- #define CONNECTION_H
-
- #include <QGraphicsLineItem>
- #include "item.h"
-
- class Connection : public QGraphicsLineItem
- {
- public:
- Connection(Item* from, Item::AnchorType fromType,
- Item* to, Item::AnchorType toType, QGraphicsItem* parent = nullptr);
-
- void updatePosition();
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override;
-
- Item *from_, *to_;
- Item::AnchorType fromType_, toType_;
- };
-
- #endif // CONNECTION_H
|