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

Keep avatar aspect ratio

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-24 18:32:20 +02:00
parent c1f24b27ba
commit 81e6d8323a

View File

@ -320,7 +320,7 @@ void Widget::onAvatarClicked()
void Widget::onSelfAvatarLoaded(const QPixmap& pic)
{
QPixmap scaled = pic.scaledToWidth(40, Qt::SmoothTransformation);
QPixmap scaled = pic.scaled(40,40, Qt::KeepAspectRatio,Qt::SmoothTransformation);
ui->profilePicture->setPixmap(scaled);
}