1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

MaskablePixmapWidget: use KeepAspectRatioByExpanding

This commit is contained in:
krepa098 2014-09-27 19:13:27 +02:00
parent 18330f0928
commit 2b58d45b73

View File

@ -38,7 +38,7 @@ void MaskablePixmapWidget::setClickable(bool clickable)
void MaskablePixmapWidget::setPixmap(const QPixmap &pmap)
{
pixmap = pmap.scaled(width(), height(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
pixmap = pmap.scaled(width(), height(), Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
}
QPixmap MaskablePixmapWidget::getPixmap() const