1 #ifndef HANDZONE_H
2 #define HANDZONE_H
3 
4 #include "selectzone.h"
5 
6 class HandZone : public SelectZone
7 {
8     Q_OBJECT
9 private:
10     qreal width, zoneHeight;
11 private slots:
12     void updateBg();
13 public slots:
14     void updateOrientation();
15 
16 public:
17     HandZone(Player *_p, bool _contentsKnown, int _zoneHeight, QGraphicsItem *parent = nullptr);
18     void handleDropEvent(const QList<CardDragItem *> &dragItems, CardZone *startZone, const QPoint &dropPoint);
19     QRectF boundingRect() const;
20     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
21     void reorganizeCards();
22     void setWidth(qreal _width);
23 
24 protected:
25     void addCardImpl(CardItem *card, int x, int y);
26 };
27 
28 #endif
29