Commit 776d809f authored by Gavin Bisesi's avatar Gavin Bisesi
Browse files

Merge pull request #483 from ZeldaZach/how_many_cards

How Many Cards
parents 8670bc67 b7384289
......@@ -181,8 +181,10 @@ void DeckViewCardContainer::paint(QPainter *painter, const QStyleOptionGraphicsI
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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment