mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
reduce unnecessary CardItem creation in ViewZone addCard process (#5513)
This commit is contained in:
parent
1d2ab8d3d3
commit
085f0dd26c
3 changed files with 44 additions and 10 deletions
|
|
@ -70,6 +70,7 @@ public:
|
|||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
void reorganizeCards() override;
|
||||
void initializeCards(const QList<const ServerInfo_Card *> &cardList = QList<const ServerInfo_Card *>());
|
||||
bool prepareAddCard(int x);
|
||||
void removeCard(int position);
|
||||
int getNumberCards() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue