mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
reworked in-game avatar display
This commit is contained in:
parent
72223b3229
commit
02f2fb9764
15 changed files with 253 additions and 94 deletions
|
|
@ -66,6 +66,9 @@ void HandZone::reorganizeCards()
|
|||
const int xPadding = 5;
|
||||
qreal totalWidth = boundingRect().width() - 2 * xPadding;
|
||||
qreal cardWidth = cards.at(0)->boundingRect().width();
|
||||
|
||||
if (cardWidth * cardCount < totalWidth)
|
||||
cardWidth += 5;
|
||||
|
||||
for (int i = 0; i < cardCount; i++) {
|
||||
CardItem *c = cards.at(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue