mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
correct mirroring of players when spectating
This commit is contained in:
parent
e1a728328e
commit
f2092b89e9
18 changed files with 690 additions and 179 deletions
27
cockatrice/src/handcounter.h
Normal file
27
cockatrice/src/handcounter.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef HANDCOUNTER_H
|
||||
#define HANDCOUNTER_H
|
||||
|
||||
#include <QString>
|
||||
#include "abstractcarditem.h"
|
||||
|
||||
class QPainter;
|
||||
class QPixmap;
|
||||
|
||||
class HandCounter : public QObject, public AbstractGraphicsItem {
|
||||
Q_OBJECT
|
||||
private:
|
||||
int number;
|
||||
QPixmap *handImage;
|
||||
public slots:
|
||||
void updateNumber();
|
||||
public:
|
||||
enum { Type = typeOther };
|
||||
int type() const { return Type; }
|
||||
HandCounter(QGraphicsItem *parent = 0);
|
||||
~HandCounter();
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue