hand counter

This commit is contained in:
Max-Wilhelm Bruker 2010-05-29 16:37:41 +02:00
parent 0d63bb7316
commit aaf236d0b4
5 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,7 @@ void CardZone::clearContents()
for (int i = 0; i < cards.size(); i++)
delete cards.at(i);
cards.clear();
emit cardCountChanged();
}
QString CardZone::getTranslatedName(bool hisOwn, GrammaticalCase gc) const
@ -90,6 +91,8 @@ void CardZone::addCard(CardItem *card, bool reorganize, int x, int y)
if (reorganize)
reorganizeCards();
emit cardCountChanged();
}
CardItem *CardZone::getCard(int cardId, const QString &cardName)
@ -134,6 +137,7 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
c->setName(cardName);
reorganizeCards();
emit cardCountChanged();
return c;
}