Add Planeswalker loyalty to CardInfoWidget

CIW will also dynamically hide/show power/toughness as well as loyalty.
This commit is contained in:
Daenyth 2011-12-03 20:20:43 -05:00
parent c12d7a08c2
commit edde8bec07
2 changed files with 33 additions and 3 deletions

View file

@ -23,6 +23,7 @@ private:
int pixmapWidth;
qreal cardHeightOffset;
qreal aspectRatio;
// XXX: Why isn't this an eunm?
int minimized; // 0 - card, 1 - oracle only, 2 - full
ResizeMode mode;
@ -32,8 +33,12 @@ private:
QLabel *manacostLabel1, *manacostLabel2;
QLabel *cardtypeLabel1, *cardtypeLabel2;
QLabel *powtoughLabel1, *powtoughLabel2;
QLabel *loyaltyLabel1, *loyaltyLabel2;
QTextEdit *textLabel;
bool shouldShowPowTough();
bool shouldShowLoyalty();
CardInfo *info;
void setMinimized(int _minimized);