new zone view code

This commit is contained in:
Max-Wilhelm Bruker 2010-03-08 15:55:35 +01:00
parent ad3f4ba9e8
commit 26a77d9e40
27 changed files with 474 additions and 397 deletions

View file

@ -53,8 +53,6 @@ void TableZone::addCardImpl(CardItem *card, int _x, int _y)
cards.append(card);
card->setGridPoint(QPoint(_x, _y));
resizeToContents();
card->setParentItem(this);
card->setVisible(true);
card->update();
@ -82,7 +80,8 @@ void TableZone::reorganizeCards()
cards[i]->setPos(x, y);
cards[i]->setZValue((y + CARD_HEIGHT) * 10000000 + x + 1000);
}
resizeToContents();
update();
}