1 #ifndef SELECTZONE_H 2 #define SELECTZONE_H 3 4 #include "cardzone.h" 5 6 class SelectZone : public CardZone 7 { 8 Q_OBJECT 9 private: 10 QPointF selectionOrigin; 11 12 protected: 13 void mouseMoveEvent(QGraphicsSceneMouseEvent *event); 14 void mousePressEvent(QGraphicsSceneMouseEvent *event); 15 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); 16 17 public: 18 SelectZone(Player *_player, 19 const QString &_name, 20 bool _hasCardAttr, 21 bool _isShufflable, 22 bool _contentsKnown, 23 QGraphicsItem *parent = nullptr, 24 bool isView = false); 25 }; 26 27 #endif 28