Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

20 linhas
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