mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Deck editor
This commit is contained in:
parent
bb30012fbb
commit
3ae865178b
10 changed files with 175 additions and 43 deletions
|
|
@ -45,7 +45,7 @@ void CardInfoWidget::setCard(CardInfo *card)
|
|||
QPixmap *pixmap = card->getPixmap();
|
||||
if (aspectratio == 0)
|
||||
aspectratio = (double) pixmap->height() / pixmap->width();
|
||||
double w = width() * 2.0 / 3.0;
|
||||
double w = 180;
|
||||
cardPicture->setPixmap(pixmap->scaled((int) w, (int) (w * aspectratio), Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
|
||||
nameLabel2->setText(card->getName());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue