don't show card p/t and loyalty in CardInfoWidget when showing only the picture

This commit is contained in:
Max-Wilhelm Bruker 2012-04-22 18:35:32 +02:00
parent 86111c7bad
commit 13d3de5c1c

View file

@ -94,12 +94,12 @@ void CardInfoWidget::minimizeClicked(int newMinimized)
bool CardInfoWidget::shouldShowPowTough()
{
return (!info->getPowTough().isEmpty());
return (!info->getPowTough().isEmpty() && (minimized != 0));
}
bool CardInfoWidget::shouldShowLoyalty()
{
return (info->getLoyalty() > 0);
return ((info->getLoyalty() > 0) && (minimized != 0));
}
void CardInfoWidget::setMinimized(int _minimized)