reduce unnecessary CardItem creation in ViewZone addCard process (#5513)

This commit is contained in:
RickyRister 2025-01-23 21:13:08 -08:00 committed by GitHub
parent 1d2ab8d3d3
commit 085f0dd26c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 10 deletions

View file

@ -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
{