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

Rescale avatars in the friend widget

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-24 17:42:10 +02:00
parent 3cb1d280bc
commit ab3f2e2950

View File

@ -200,5 +200,6 @@ void FriendWidget::onAvatarChange(int FriendId, const QPixmap& pic)
return;
isDefaultAvatar = false;
avatar.setPixmap(pic);
QPixmap scaled = pic.scaled(40,40,Qt::KeepAspectRatio,Qt::SmoothTransformation);
avatar.setPixmap(scaled);
}