mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
add comment about #5204
This commit is contained in:
parent
8b5957d356
commit
9769541ed5
1 changed files with 2 additions and 0 deletions
|
|
@ -136,6 +136,8 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
|||
connect(zone, SIGNAL(beingDeleted()), this, SLOT(zoneDeleted()));
|
||||
zone->initializeCards(cardList);
|
||||
|
||||
// QLabel sizes aren't taken into account until the widget is rendered.
|
||||
// Force refresh after 1ms to fix glitchy rendering with long QLabels.
|
||||
auto *lastResizeBeforeVisibleTimer = new QTimer(this);
|
||||
connect(lastResizeBeforeVisibleTimer, &QTimer::timeout, this, [=] {
|
||||
resizeToZoneContents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue