mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
Multiple background images on all zones (#4144)
This commit is contained in:
parent
e10446f5b8
commit
1a94261490
6 changed files with 84 additions and 5 deletions
|
|
@ -73,6 +73,7 @@ class PlayerArea : public QObject, public QGraphicsItem
|
|||
Q_INTERFACES(QGraphicsItem)
|
||||
private:
|
||||
QRectF bRect;
|
||||
int playerZoneId;
|
||||
private slots:
|
||||
void updateBg();
|
||||
|
||||
|
|
@ -94,6 +95,12 @@ public:
|
|||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
|
||||
void setSize(qreal width, qreal height);
|
||||
|
||||
void setPlayerZoneId(int _playerZoneId);
|
||||
int getPlayerZoneId() const
|
||||
{
|
||||
return playerZoneId;
|
||||
}
|
||||
};
|
||||
|
||||
class Player : public QObject, public QGraphicsItem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue