mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Block some updates in the name of performance.
This commit is contained in:
parent
5791d7ffda
commit
d45310191f
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ OverlappedCardGroupDisplayWidget::OverlappedCardGroupDisplayWidget(QWidget *pare
|
|||
|
||||
void OverlappedCardGroupDisplayWidget::updateCardDisplays()
|
||||
{
|
||||
overlapWidget->setUpdatesEnabled(false);
|
||||
// Retrieve and sort cards
|
||||
QList<CardInfoPtr> cardsInZone = getCardsMatchingGroup(deckListModel->getCardsAsCardInfoPtrsForZone(zoneName));
|
||||
|
||||
|
|
@ -108,6 +109,8 @@ void OverlappedCardGroupDisplayWidget::updateCardDisplays()
|
|||
}
|
||||
|
||||
overlapWidget->adjustMaxColumnsAndRows();
|
||||
overlapWidget->setUpdatesEnabled(true);
|
||||
overlapWidget->update();
|
||||
}
|
||||
|
||||
void OverlappedCardGroupDisplayWidget::resizeEvent(QResizeEvent *event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue