Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

21 lignes
492 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. void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override;
  12. Item *from_, *to_;
  13. Item::AnchorType fromType_, toType_;
  14. };
  15. #endif // CONNECTION_H