25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
403 B

  1. #ifndef CONNECTION_H
  2. #define CONNECTION_H
  3. #include <QGraphicsLineItem>
  4. #include "item.h"
  5. class Connection : public QGraphicsLineItem
  6. {
  7. public:
  8. Connection(Item* from, Item::AnchorType fromType,
  9. Item* to, Item::AnchorType toType, QGraphicsItem* parent = nullptr);
  10. void updatePosition();
  11. Item *from_, *to_;
  12. Item::AnchorType fromType_, toType_;
  13. };
  14. #endif // CONNECTION_H