Deck editor

This commit is contained in:
Max-Wilhelm Bruker 2009-05-23 20:04:14 +02:00
parent bb30012fbb
commit 3ae865178b
10 changed files with 175 additions and 43 deletions

View file

@ -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());