mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 18:43:55 -07:00
improved appearance
This commit is contained in:
parent
8782438fcc
commit
6e94221112
20 changed files with 158 additions and 77 deletions
21
cockatrice/src/playerarea.h
Normal file
21
cockatrice/src/playerarea.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef PLAYERAREA_H
|
||||
#define PLAYERAREA_H
|
||||
|
||||
#include "carditem.h"
|
||||
|
||||
class Player;
|
||||
|
||||
class PlayerArea : public QGraphicsItem {
|
||||
private:
|
||||
QRectF bRect;
|
||||
Player *player;
|
||||
public:
|
||||
enum { Type = typeOther };
|
||||
int type() const { return Type; }
|
||||
PlayerArea(Player *_player, QGraphicsItem *parent = 0);
|
||||
~PlayerArea();
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue