commit
eeed03b101
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,6 @@ void ZoneViewZone::reorganizeCards()
|
||||||
typeRow++; // add below current card
|
typeRow++; // add below current card
|
||||||
else { // if no match then move card to next column
|
else { // if no match then move card to next column
|
||||||
typeColumn++;
|
typeColumn++;
|
||||||
longestRow = qMax(typeRow, longestRow);
|
|
||||||
typeRow = 0;
|
typeRow = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,6 +127,7 @@ void ZoneViewZone::reorganizeCards()
|
||||||
qreal y = typeRow * CARD_HEIGHT / 3;
|
qreal y = typeRow * CARD_HEIGHT / 3;
|
||||||
c->setPos(x + 5, y + 5);
|
c->setPos(x + 5, y + 5);
|
||||||
c->setRealZValue(i);
|
c->setRealZValue(i);
|
||||||
|
longestRow = qMax(typeRow, longestRow);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < cardCount; i++) {
|
for (int i = 0; i < cardCount; i++) {
|
||||||
|
|
Loading…
Reference in a new issue