mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 00:53:57 -07:00
make more use of SettingsCache
This commit is contained in:
parent
2c9a8c2b57
commit
e9a0203880
10 changed files with 106 additions and 48 deletions
|
|
@ -10,7 +10,10 @@ signals:
|
|||
private:
|
||||
int width, height;
|
||||
QPixmap bgPixmap;
|
||||
bool economicGrid;
|
||||
private slots:
|
||||
void updateBgPixmap();
|
||||
public slots:
|
||||
void reorganizeCards();
|
||||
public:
|
||||
static const int paddingY = 20;
|
||||
static const int marginX = 20;
|
||||
|
|
@ -19,7 +22,6 @@ public:
|
|||
TableZone(Player *_p, QGraphicsItem *parent = 0);
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
void reorganizeCards();
|
||||
void toggleTapped();
|
||||
void handleDropEvent(int cardId, CardZone *startZone, const QPoint &dropPoint, bool faceDown = false);
|
||||
void handleDropEventByGrid(int cardId, CardZone *startZone, const QPoint &gridPoint, bool faceDown = false, bool tapped = false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue