| 399 | } |
| 400 | |
| 401 | void Character::scale(QPixmap &img) |
| 402 | { |
| 403 | if(img.isNull()) return; |
| 404 | const int maxSize = 600; |
| 405 | int w = qMin(qMin(img.width(), img.height()), maxSize); |
| 406 | img = img.scaled(w, w, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation); |
| 407 | } |
| 408 | |
| 409 | void AnimeImage::setRoundedThumb(const QImage &src) |
| 410 | { |