Took 15 minutes
This commit is contained in:
Lukas Brübach 2025-09-11 21:12:40 +02:00
parent 0bd1f78391
commit 1cce0df0fa

View file

@ -182,10 +182,13 @@ void PlayerGraphicsItem::rearrangeZones()
handZoneGraphicsItem->setWidth(tableZoneGraphicsItem->getWidth() + handZoneGraphicsItem->setWidth(tableZoneGraphicsItem->getWidth() +
stackZoneGraphicsItem->boundingRect().width()); stackZoneGraphicsItem->boundingRect().width());
} else { } else {
if (player->getHandZone()->contentsKnown()) {
player->setHandVisible(true); player->setHandVisible(true);
handZoneGraphicsItem->setPos(base); handZoneGraphicsItem->setPos(base);
base += QPointF(handZoneGraphicsItem->boundingRect().width(), 0); base += QPointF(handZoneGraphicsItem->boundingRect().width(), 0);
} else {
player->setHandVisible(false);
}
stackZoneGraphicsItem->setPos(base); stackZoneGraphicsItem->setPos(base);
base += QPointF(stackZoneGraphicsItem->boundingRect().width(), 0); base += QPointF(stackZoneGraphicsItem->boundingRect().width(), 0);