mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 00:53:55 -07:00
optional setting for horizonal hand display
This commit is contained in:
parent
33606f55ce
commit
e6e20cb048
19 changed files with 275 additions and 76 deletions
|
|
@ -5,19 +5,17 @@
|
|||
|
||||
class HandZone : public CardZone {
|
||||
Q_OBJECT
|
||||
private:
|
||||
protected:
|
||||
QPixmap bgPixmap;
|
||||
int zoneHeight;
|
||||
private slots:
|
||||
private slots:
|
||||
void updateBgPixmap();
|
||||
public:
|
||||
HandZone(Player *_p, bool _contentsKnown, int _zoneHeight, QGraphicsItem *parent = 0);
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
void reorganizeCards();
|
||||
HandZone(Player *_p, bool _contentsKnown, QGraphicsItem *parent = 0);
|
||||
void handleDropEvent(int cardId, CardZone *startZone, const QPoint &dropPoint, bool faceDown);
|
||||
virtual void setWidth(qreal _width) = 0;
|
||||
protected:
|
||||
void addCardImpl(CardItem *card, int x, int y);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue