Skip to content

Commit

Permalink
Merge pull request Cockatrice#483 from ZeldaZach/how_many_cards
Browse files Browse the repository at this point in the history
How Many Cards
  • Loading branch information
Daenyth committed Dec 9, 2014
2 parents 8670bc6 + b738428 commit 776d809
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cockatrice/src/deckview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ void DeckViewCardContainer::paint(QPainter *painter, const QStyleOptionGraphicsI
qreal thisRowHeight = CARD_HEIGHT * currentRowsAndCols[i].first;
QRectF textRect(0, yUntilNow, totalTextWidth, thisRowHeight);
yUntilNow += thisRowHeight + paddingY;


QString displayString = QString("%1\n(%2)").arg(cardTypeList[i]).arg(cardsByType.count(cardTypeList[i]));

painter->setPen(Qt::white);
painter->drawText(textRect, Qt::AlignHCenter | Qt::AlignVCenter | Qt::TextSingleLine, cardTypeList[i]);
painter->drawText(textRect, Qt::AlignHCenter | Qt::AlignVCenter, displayString);
}
}

Expand Down

0 comments on commit 776d809

Please sign in to comment.