don't show card p/t and loyalty in CardInfoWidget when showing only the picture
This commit is contained in:
parent
86111c7bad
commit
13d3de5c1c
1 changed files with 2 additions and 2 deletions
|
@ -94,12 +94,12 @@ void CardInfoWidget::minimizeClicked(int newMinimized)
|
||||||
|
|
||||||
bool CardInfoWidget::shouldShowPowTough()
|
bool CardInfoWidget::shouldShowPowTough()
|
||||||
{
|
{
|
||||||
return (!info->getPowTough().isEmpty());
|
return (!info->getPowTough().isEmpty() && (minimized != 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CardInfoWidget::shouldShowLoyalty()
|
bool CardInfoWidget::shouldShowLoyalty()
|
||||||
{
|
{
|
||||||
return (info->getLoyalty() > 0);
|
return ((info->getLoyalty() > 0) && (minimized != 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardInfoWidget::setMinimized(int _minimized)
|
void CardInfoWidget::setMinimized(int _minimized)
|
||||||
|
|
Loading…
Reference in a new issue